问题
When I create an iOS project on my own, I can build it without any problem. I downloaded a project for testing purposes and now I get:
No provisioning profiles found
No non-expired provisioning profiles were found
In this case I downloaded an Xcode project from one of Apples tutorial pages.
回答1:
Change your build setting for Code Signing Identity and Provisioning Profile first both in project and target...
Check image below ...
Change your Team from General tab...
Check image below ...
i hope this will help you...
回答2:
In some cases that error can be caused by "Generic iOS Device" being selected as active scheme.
Changing that to a specific device solved the problem for me.
来源:https://stackoverflow.com/questions/37969772/no-provisioning-profiles-found-in-xcode