在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的這個問題就解決了。