1
我在保存/檢索iCloud中的鍵/值時遇到了問題。我的問題主要是保存iCloud的密鑰,並在嘗試讀取與另一個設備相同的密鑰時檢索爲零。日誌上的奇怪消息
調查此問題,我發現這在設備控制檯上。
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: Dec 3 18:11:16 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Dec 3 18:11:16 iPhone-4S amfid[641] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
我已經刪除了所有配置的配置文件並重新創建它們,從Xcode中刪除它們並重新安裝,重新啓動設備,但錯誤繼續下去。
這是我的權利文件內容
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>$(TeamIdentifierPrefix)com.myCompany.myApp</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)com.myCompany.myApp</string>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.myCompany.myApp</string>
</array>
</dict>
</plist>
如何解決這個問題(該文件是由Xcode中自動創建的)?