Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sync all Documents directory into iCloud

Is there a way to make my Documents directory synchronized with iCloud?

I have setup all permissions and entitlements, but have no idea what to do next.

Could you please provide a swift code snippet or point into a direction I should look to?

like image 959
Alex Smolov Avatar asked Apr 30 '15 19:04

Alex Smolov


People also ask

Can I upload entire folders to iCloud?

Upload filesDrag files from the desktop or a folder window on your computer to the iCloud Drive window or a folder icon in the iCloud Drive window. If you drag to a folder icon, it becomes highlighted to confirm that the item you're dragging will go into the folder.

How do I automatically sync files to iCloud?

To automatically back up your device each day, turn on iCloud Backup via Settings > [your name] > iCloud > iCloud Backup and toggle iCloud Backup to on. If you're using iOS 10.2 or earlier, go to Settings > iCloud > Backup. The device will then back up when your phone is connected to power, locked, and on Wi-Fi.

How do I move everything to iCloud?

Go to Settings. Tap Get content from another phone or System > Get content from another phone. Tap iPhone > Import from iCloud backup. Follow the steps shown onscreen to back up your iPhone content to your iCloud storage.


1 Answers

When I needed to keep NSUserDefaults in sync via iCloud in simple apps, I used: MKiCloudSync by Mugunth Kumar. While still Objective-C, it's pretty straightforward to use.

If you need iCloud Documents sync, you might check out iRareMedia/iCloudDocumentSync. Of course, this is a bit more work, but still easier than implementing all the methods by yourself.

Have a nice day,

@cdf1982

like image 99
cdf1982 Avatar answered Sep 26 '22 00:09

cdf1982