在IOS开发过程中,会经常遇到各种证书的问题。例如下边的出现的问题:
Profile doesn’t include the com.apple.developer.icloud-container-environment entitlement
从字面上可以大概定位问题应该出现在iCloud。
1.首先配置证书,检查对应App的Identifiers 是否含有iCloud的内容:
2.如果iCloud没有添加或者是打开,就添加打开iCloud,注册iCloud Container。
注册iCloud:
iCloud Contains创建完成之后,回到1,把创建的iCloud Contains配置到Identifiers。
3.重新更新Profile,并下载Profile安装。
4.检查项目:Signing & Capabilitiesz中的iCloud配置。
重新打包App,Profile doesn’t include the com.apple.developer.icloud-container-environment entitlement的这个问题就解决了。