问题
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:
- open XCode with some kind of test project
- set the targeted bundle id in plist (this step is important as long as provision is tightly coupled with the bundle id)
- deploy to a device from XCode, it will generate all the required cert/profiles and saves on the Mac
- go to VS, make you your bundle id in the real app is the same you just generated provision for
- hit run on a device - it should work just fine
回答2:
If you are trying with the free account, teams won't appear in VS but you can see in Xcode. Follow the below step to test the application in the device.
- Open Xcode with some kind of test project.
- Set the targeted bundle id in plist.
- Select the respected team and choose automatic provisioning profile. It will generate all the required cert/profiles and saves on the Mac
- Deploy the app in device from Xcode.
- Go to VS, use the same Bundle ID which we used in Xcode to run the app.
- Hit run on a device - it should work just fine.
回答3:
To fix this for me, In Visual Studio for Mac, I:
- Opened info.plist
- Set option to manually provision
- Click on bundle signing options button
- Go to the IOS Bundle Signing category
- Clear out the file listed in the “Custom Entitlement” field.
Note: This does not answer the question as to why the original poster’s personal team (used with unpaid developer account) does not show up in Visual Studio for Mac BUT it does solve the problem for why you want you unpaid developer team account to show up (for delvelopment!). Which is inherently why original poster asked the question.
来源:https://stackoverflow.com/questions/48593068/apple-developer-account-teams-not-showing-up-on-vs-mac