ICloud Drive Folder

I have an OSX app that uses iCloud documents with an older Team ID key. Does anyone know how to get the Ubiquity folder to appear in the iCloud drive folder?

I've already tried to use the NSUbiquitousContainerIsDocumentScopePublic key set to true in the pList app.

The folders that appear on the iCloud drive include the Apple app and Pixelmator.

+3


source to share


1 answer


Add these values ​​to your info.plist file and change the build number .

<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>

      



and add these keys to your rights, you will see an error message in the iCloud features section, but it will stop working. Therefore, DO NOT click the Fix button or change it, or it will no longer work.

<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>

      

+8


source







All Articles