Xcode 8中,真机调试提示:'AppName' requires a provisioning profile

使用Xcode 8真机调试时,跑起来发现有这样的错误提示:

☞'AppName' requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
☞Code signing is required for product type 'Application' in SDK 'iOS 10.0'

原因:

Xcode改版后,测试的App ID默认不会自动生成。

解决方法:

TARGE-->General-->Siging-->Automatically manage signing(前面打勾)-->选择开发团队

你可能感兴趣的:(Xcode 8中,真机调试提示:'AppName' requires a provisioning profile)