简体   繁体   中英

ios app containers sync with icloud

I am building an app that contains its own iCloud container. The capabilities configuration is attached below.

Below is the key entry in Info.plist.

<key>iCloud.com.dearle.Ascert</key>
<dict>
  <key>NSUbiquitousContainerIsDocumentScopePublic</key>
  <true/>
  <key>NSUbiquitousContainerSupportedFolderLevels</key>
  <string>Any</string>
  <key>NSUbiquitousContainerName</key>
  <string>Ascert</string>
</dict>

It is my understanding that anything I put into my app container should show up in the iCloud drive under a folder named Ascert and that I should be able to open the document in my app from the iCloud drive.

I have tried everything I can think of, unfortunately I am not very experienced with xCode so am unsure of where I am going wrong.

Any help would be appreciated.

I faced the same issue as well, the setup you have done is correct. Try increasing the build number and version number before you run your code for the iCloud functionality. This worked for me. Apparently as long as these values are not increased the iCloud setup is not picked up

No, it won't be visible in iCloud drive. It will be in iCloud / Manage Storage/ Container name. To sync files between different devices with same Apple id, you use method startDownloadingUbiquitousItemAtURL. Source

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM