Apple developer account teams not showing up on VS

2019-02-13 14:49发布

问题:

When I log in my apple id account on Visual Studio Mac Community 2017, teams doesn't show up. Do I have to have a paid apple developer account to use this?

There are no team displayed, and the button "View Details..." doesn't do anything. Also, the icon on the left side of the account is a smiley face icon and it should be a user icon in the official tutorial.

Screenshot:

While it works perfectly on Xcode:

Environments:
- Xcode commandline installed.
- Fastlane installed.

What troubleshooting I have already done:
- Reinstall Fastlane.
- Use other accounts (none of them worked).
- Use Xcode to log in (screenshot above).
- Try to find anyone had the same problem online and didn't find any.

回答1:

In case of a personal free account, teams won't appear in VS but will appear in XCode. Every time you need to generate new provision you have to:

  1. open XCode with some kind of test project
  2. set the targeted bundle id in plist (this step is important as long as provision is tightly coupled with the bundle id)
  3. deploy to a device from XCode, it will generate all the required cert/profiles and saves on the Mac
  4. go to VS, make you your bundle id in the real app is the same you just generated provision for
  5. hit run on a device - it should work just fine