iCloud驱动器文件夹

And*_*ang 3 macos xcode objective-c icloud

我有一个OSX应用程序,它使用带有旧Team ID普遍性密钥的iCloud文档.有谁知道如何让ubiquity文件夹出现在iCloud驱动器文件夹中?

我已经尝试在应用程序pList中使用NSUbiquitousContainerIsDocumentScopePublic键设置为true无效.

出现在iCloud驱动器中的文件夹包括Apple的应用程序和Pixelmator.

Max*_*ral 8

将这些值添加到info.plist文件并更改您的内部版本号.

<key>NSUbiquitousContainers</key>
    <dict>
        <key>iCloud.com.example.app</key>
        <dict>
            <key>NSUbiquitousContainerIsDocumentScopePublic</key>
            <true/>
            <key>NSUbiquitousContainerName</key>
            <string>App name to display in iCloud Drive</string>
            <key>NSUbiquitousContainerSupportedFolderLevels</key>
            <string>None</string>
        </dict>
    </dict>
Run Code Online (Sandbox Code Playgroud)

并将这些密钥添加到您的权利中,您将在iCloud功能部分看到错误,但其工作正常.因此,请勿单击修复按钮或从功能更改它,否则它将不再起作用.

<key>com.apple.developer.ubiquity-container-identifiers</key>
        <array>
            <string>iCloud.$(CFBundleIdentifier)</string>
        </array>
        <key>com.apple.developer.icloud-services</key>
        <array>
            <string>CloudDocuments</string>
        </array>
        <key>com.apple.developer.ubiquity-kvstore-identifier</key>
        <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
Run Code Online (Sandbox Code Playgroud)

  • 是.似乎问题主要是我没有改变我的内部版本号.谢谢你,谢谢你,谢谢你! (3认同)