"XXXXX" doesn't include the application-identifier and keychain-access-groups entitlements.

前日真机调试,报错如下:

Showing All Messages
Automatic signing is unable to resolve an issue with the "xxxxx" target's entitlements. 
Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. 
Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. 
Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.


Showing All Messages
Provisioning profile "iOS Team Provisioning Profile: com.breakloop.xxxx" doesn't include the application-identifier and keychain-access-groups entitlements.

回查,并未做任何不当修改。

之后百度,无任何匹配结果。

再查,苹果论坛,发现该问题近日频发。因此,非本地配置错误。

至3月13日,苹果论坛才有解决方案,现转述如下。

(1)选取对应project target

(2)Target -> General -> Signing ->Automatically manage signing

(3)Target -> Capabilities, 开启 'Keychain Sharing' 和 'App Groups',忽略所产生的错误。

此时,在project navigator中将显示生成了一个“projectname..entitlements”,可在project目录下找到该文件。

需要将该文件复制到其他位置。原因在于,当关闭 'Keychain Sharing' 和 'App Groups'时,原位置的文件将被修改。

(4)关闭'Keychain Sharing' 和 'App Groups'。

(5)将“projectname..entitlements”拷贝回原有位置。

(6)Target -> build setting -> Code Signing Identity, 全部设置为iOS Developer.

(7)Target -> Build Setting -> Code Signing Entitlements, 填入刚生成的“projectname..entitlements”。

重新编译即可。

该方案,解决了“XXXX doesn't include the application-identifier and keychain-access-groups entitlements.”的问题。

同样遇到该问题的同学,可以尝试一下。

原论坛帖地址:https://forums.developer.apple.com/message/352573#352573

解决方案截图:

你可能感兴趣的:(IOS)