我正在 Adobe AIR(flash) 上开发 iOS 应用程序,我想使用 iCloud KeyValue 函数(使用 ANE)。
如何在 AIR 上启用 iCloud 功能?
我认为 app.xml 是如何完成此操作的,但不确定。
最佳答案
我解决了这个问题。
<Entitlements>
<![CDATA[
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>$(TeamIdentifierPrefix).com.hoge.hugaApp</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix).com.hoge.hugaApp</string>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix).com.hoge.hugaApp</string>
</array>
]]>
我从XCode项目的hugaApp.entitlement中这样写,它是自动生成的文件。 然后我将 $(TeamIdentifierPrefix) 和 $(AppIdentifierPrefix) 替换为实际值。
谢谢你回复我!
关于ios - 在 AIR for iOS 上启用 iCloud,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12367931/