从Xcode7升级到Xcode8后,从Xcode8打开以前的工程,证书的配置会变成自动的
"General" -> "Automatically manage signing"
Build项目时,会出现证书失败的问题
Automatic provisioning failed: Xcode failed to provision this target. Please file a bug report atand include the Update Signing report from the Report navigator.Provisioning profile "iOS Team Provisioning Profile: com.xxx.xxx" doesn't include signing certificate "iPhone Developer: xxx xxx (MQF8D9PK85)".Code signing is required for product type 'Application' in SDK 'iOS 10.0'
解决办法:
1. 修改"Code Signing Identity"的值
选择 工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer
参考: iOS真机测试 code signing is required for product type 'Application' in SDK 'iOS 10.0'
2. 重新设置debug 和release的 Provisioning Profile
Xcode8.0 新特性之一,更新了Provisioning Profile,需要重新设置debug 和release的 Provisioning Profile,设置完成后Clean,Run通过。
参考: Xcode8.0 Bate 适配问题,Code signing is required for product type 'Application' in SDK 'iOS 10.0'
3. 关闭"Automatically manage signing"
如果上面两个方法都不凑效,那只有使用终极方法,直接关闭"Automatically manage signing"的配置,改用手动配置的方式