Xcode8 证书问题:Code signing is required for product type 'Application' in SDK 'iOS 10.0'

从Xcode7升级到Xcode8后,从Xcode8打开以前的工程,证书的配置会变成自动的

"General" -> "Automatically manage signing"


Xcode8 证书问题:Code signing is required for product type 'Application' in SDK 'iOS 10.0'_第1张图片

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'


Xcode8 证书问题:Code signing is required for product type 'Application' in SDK 'iOS 10.0'_第2张图片


解决办法:

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"的配置,改用手动配置的方式


Xcode8 证书问题:Code signing is required for product type 'Application' in SDK 'iOS 10.0'_第3张图片

你可能感兴趣的:(Xcode8 证书问题:Code signing is required for product type 'Application' in SDK 'iOS 10.0')