2

我正在 Adob​​e AIR(flash)上开发 iOS 应用程序,我想使用 iCloud KeyValue 函数(使用 ANE)。

如何在 AIR 上启用 iCloud 功能?

我假设 app.xml 是如何完成的,但不确定。

4

2 回答 2

3

我解决了这个问题。

<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) 替换为实际值。

谢谢你回复我!

于 2012-09-12T04:52:39.987 回答
2

Adobe AIR 本身不支持 iCloud(iOS SDK 本身支持 iCloud)。

为了能够使用 iCloud,您需要使用使用 xCode 和 ObjC 的 Native 扩展。我可能是错的,但我找不到任何现有的 iCloud AIR 原生扩展,只是在谷歌检查。

无论如何,您可以查看以下链接:

http://extensionsforair.com/native-extensions/ios/

http://www.adobe.com/devnet/air/native-extensions-for-air.html

于 2012-09-11T13:35:58.220 回答