What is the path to your iCloud Documents folder

iCloud-IconIf you want to know how to access iCloud Documents folder (or ubiquitous documents folder) you need to know your Team ID.

You’ll also need the Bundle ID which can be extracted from the main bundle.

Here’s a method that will deliver you the path to a file. All you need to do is provide the name of a file and it will return the full path to this file in iCloud:

Useful for Core Data Store Files, UIDocuments or plain images.

Note than when documents have populated to iOS devices they need to be downloaded explicitly – otherwise you won’t get a useable file (unlike on OS X which is known as a “greedy peer” and will download the entire file, not just the wrapper).

For completion, here’s how you do just that:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.