【发布时间】:2012-04-17 16:29:17
【问题描述】:
我在使用 iCloud 键值存储时遇到问题。 我目前有一个由 iCloud 同步的核心数据,但我无法让 K-V Store 工作 我得到:
com.domain.appname has no valid com.apple.developer.ubiquity-kvstore-identifier entitlement
com.domain.appname 是我的 appid 的格式,为保护隐私而屏蔽。
这已经存在了一段时间,我看到有人遇到这个问题,并且在重新安装应用程序时问题消失了,但这不适用于我。不知道为什么。
我的权利:
<?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.domain.appname</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)com.domain.appname</string>
<key>keychain-access-groups</key>
<array>
<string>$(TeamIdentifierPrefix)com.domain.appname</string>
</array>
</dict>
</plist>
如果您还需要什么,尽管问,谢谢!
【问题讨论】:
-
你好 Nicolas S,你是怎么解决这个问题的?
标签: ios icloud key-value-store nsubiquitouskeyvaluestore