Questions tagged [icloud-drive]

iCloud Drive is a cloud storage by Apple

Features:

  • Store and access all of your documents in one place from any of your devices
  • Keep files and folders up to date across all your devices
  • Create new files and folders from iCloud-enabled apps
  • Work on the same file across multiple apps

iCloud for Developers

187 questions
26
votes
7 answers

UIDocumentPickerViewController returns url to a file that does not exist

I'm using UIDocumentPickerViewController to let the user select a file from iCloud Drive for uploading to the backend. Most of the time, it works correctly. However, sometimes (especially when the internet connection is…
imgx64
  • 4,062
  • 5
  • 28
  • 44
21
votes
8 answers

How to access files in iCloud Drive from within my iOS app?

Is there a way to choose file from iCloud Drive similar way to UIImagePickerController()?
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
21
votes
5 answers

Swift write/save/move a document file to iCloud drive

I've been trying for over two days to write a file to iCloud drive. I have tried writing a simple text file directly, locally then moving it, using UIDocumentMenuViewController, etc. I'm not getting any errors with my code and stepping through…
Paul C
  • 261
  • 1
  • 2
  • 8
20
votes
6 answers

Why my app is not shown in iCloud Drive Folder

iCloud Drive Folder doesn't show my app's folder. This is how I send a file to iCloud Drive: - (IBAction)btnStoreTapped:(id)sender { // Let's get the root directory for storing the file on iCloud Drive [self rootDirectoryForICloud:^(NSURL…
amone
  • 3,712
  • 10
  • 36
  • 53
16
votes
2 answers

ICloud Drive Desktop Sync vs. Git - deleted files reappear and duplicates with number suffixes

Some words about my setup: MacOs Catalina 10.15.2 Talking about git project folders on my Desktop which is synced with ICloud Drive sync Desktop & Document Folders option enabled I have noticed that the following happens every now and then for…
14
votes
4 answers

iCloud Drive Issue: "[DocumentManager] Failed to associate thumbnails for picked URL"

I've created a JSON string file from an object containing multiple properties. This is the object: RecipeFile : Codable { var name: String var theRecipeIngredients: [String] var theRecipeSteps: [String] var theRecipeRating: Int var…
Diskprotek
  • 601
  • 2
  • 7
  • 13
12
votes
3 answers

Saving a file to icloud drive

I'm trying to save a file to icloud drive. I'm going for the simple version where I don't let the user pick where to save the file, I just save it in the root directory of icloud drive. Here's the code I'm using: func exportToFiles() { for page…
Vlad the Impala
  • 15,572
  • 16
  • 81
  • 124
12
votes
0 answers

iCloud Drive REST API?

I'm writing Windows C++ application that gives user ability to save some work results directly to cloud storage like Google Drive, Dropbox and OneDrive. I've been able to create working implementation of code that uses OAuth2 and REST API to…
Adrian
  • 149
  • 1
  • 8
12
votes
4 answers

My app is getting crashed on UIDocumentPickerViewController

I am working on file sharing on my iOS App, I am new to UIDocumentPickerViewController. I do not know why my app is crashing. UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc]…
Anand3777
  • 448
  • 2
  • 5
  • 16
10
votes
1 answer

Open iCloud Drive in iOS app

I want to allow document(pdf, doc, docx) selection in my app. And I want to integrate iCloud for this. All I want to do is to open the iCloud drive from my app and there user can select the file and returns back to the origin app. Something like…
Rohitax Rajguru
  • 893
  • 2
  • 13
  • 35
9
votes
1 answer

How to save pdf document to iCloud Drive programmatically using swift?

My app creates a pdf file, and I want to save that pdf document to iCloud Drive programmatically using swift 3. For a sample, here I used a Text file to save in iCloud Drive. This is my code: func copyDocumentsToiCloudDrive() { var error:…
anas.p
  • 2,246
  • 19
  • 26
9
votes
2 answers

Why is my iCloud Drive AppFolder visible on MacOS, but disabled in iCloud Drive App on iOS?

I developed an iCloud Drive Export feature for my iOS App and it works. I can see the exported Documents in our public AppContainerFolder in the iCloud Drive folder on Mac OS X 10.11. But on iOS, I only can see the AppContainerFolder in the iCloud…
Bernd
  • 189
  • 9
9
votes
2 answers

UIDocumentPickerViewController: how to open a given subdirectory

I am using UIDocumentPickerViewController with the import mode (UIDocumentPickerModeImport) in order to let the user import documents from cloud storage providers (dropbox, etc). Each time the user repeat the import process, he must browse through…
8
votes
0 answers

Downloading files in a folder selected by UIDocumentPickerController

I'm trying to download the files contained in a folder hierarchy picked by the UIDocumentPickerController. I use the URL I get from documentPicker:DidPickDocumentsAtURLs: with an NSFileCoordinator. For a folder provided by the iCloud Drive file…
7
votes
0 answers

How to force iCloud file to be synchronized?

I'm using iCloud drive to synchronize each devices of a user and it works relatively well except sometime when a file is not direclty uploaded to iCloud Drive. To unlock this situation, I have to open the "Files" folder on the device which send the…
1
2 3
12 13