iCloud Drive Folder

前端 未结 1 1316
挽巷
挽巷 2020-12-16 08:05

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

1条回答
  •  离开以前
    2020-12-16 08:16

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

    NSUbiquitousContainers
        
            iCloud.com.example.app
            
                NSUbiquitousContainerIsDocumentScopePublic
                
                NSUbiquitousContainerName
                App name to display in iCloud Drive
                NSUbiquitousContainerSupportedFolderLevels
                None
            
        
    

    and add these keys to your entitlements, you will see an error on the iCloud section of capabilities, but its working fine. So DO NOT click the fix button or change it from the capabilities or it will not work anymore.

    com.apple.developer.ubiquity-container-identifiers
            
                iCloud.$(CFBundleIdentifier)
            
            com.apple.developer.icloud-services
            
                CloudDocuments
            
            com.apple.developer.ubiquity-kvstore-identifier
            $(TeamIdentifierPrefix)$(CFBundleIdentifier)
    

    0 讨论(0)
提交回复
热议问题