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
7
votes
1 answer

No permission to read iCloud Drive file

I am trying to make it possible for my app to open iCloud Drive files, when the user taps on the file in the Apple "Files" app, and selects my app to view it in. Everything is set up fine, such that the app gets opened, and notified when the user…
fishinear
  • 6,101
  • 3
  • 36
  • 84
7
votes
2 answers

Github repo cloned to synced iCloud drive on multiple computers

I have a couple of Macs onto which I clone a fair number of git (mostly GitHub) repos. The Macs each have a number of iCloud drive synced directories (in fact I've gone all-in and am syncing Desktop and Documents). I have tried to clone into the…
Andrew Jaffe
  • 26,554
  • 4
  • 50
  • 59
7
votes
0 answers

iCloud drive - is it possible to access user files

I configured my IOS project to work with iCloud drive. Now I'm able to store and read files from my app's ubiquitous container. Is it however possible to access also files from root directory of iCloud? Let's assume the user put some movie file…
Wujo
  • 1,845
  • 2
  • 25
  • 33
6
votes
2 answers

Get the names of files in an iCloud Drive folder that haven't been downloaded yet

I’m trying to get the names of all files and folders in an iCloud Drive directory: import Foundation let fileManager = FileManager.default let directoryURL = URL(string: "folderPathHere")! do { let directoryContents = try…
mralexhay
  • 1,164
  • 1
  • 10
  • 16
6
votes
0 answers

Is it safe to use NSFileManager.fileExists(atPath:) for files in iCloud that might not have been downloaded?

I need a 100% fail-safe way to determine if a file name/file URL is available for writing data to disk without accidentally deleting an existing file. Currently I'm using NSFileManager.fileExists(atPath:), but I'm wondering, what if the parent…
Mark
  • 6,647
  • 1
  • 45
  • 88
6
votes
1 answer

What is the difference between iCloud Drive and CloudKit?

What is the difference between iCloud Drive and CloudKit? Which would be better for storing manual, periodic app document backups? I did see this question: iCloud versus iCloud Drive versus CloudKit but it is about costs and not the differences…
SAHM
  • 4,078
  • 7
  • 41
  • 77
6
votes
4 answers

How to generate thumbnails of images on iCloud Drive?

This appears easy, but the lack of documentation makes this question impossible to guess. I have pictures and videos on my app's icloud drive and I want to create thumbnails of these assets. I am talking about assets on iCloud Drive, not the iCloud…
Duck
  • 34,902
  • 47
  • 248
  • 470
5
votes
0 answers

How can I programmatically force an iCloud Drive sync in my iOS app?

I use FileManager.default.contentsOfDirectory to get the content of an iCloud Drive directory. However, sometimes, when I removed a file on my Mac, the content is not up to date. I can force a synchronization by opening the Files app on my iPhone…
John
  • 8,468
  • 5
  • 36
  • 61
5
votes
1 answer

Read value for Document Storage ("Store documents & data on") settings on iOS

In the settings screen of iOS I can choose for iCloud Drive enabled apps the "Document Storage" setting (analog to Mobile Data, Camera access options). There it says "Store Documents & Data On" with two options for iCloud Drive or On My Phone…
Jim B
  • 641
  • 5
  • 18
5
votes
2 answers

Is there a way to manually offload files to iCloud Drive?

TL;DR: I have a small internal hard drive and a 2TB iCloud Drive. I want to have access to all my files (iCloud), but I don't want all of my files on my computer. In macOS (since Sierra I believe) Apple included a features where you can have your…
5
votes
1 answer

How to extract icloud data through JavaScript / PHP by providing "icloud credential"?

We are looking for any type of SDK / API or references available for extracting the icloud data Like (Messages, Photos and videos, Browser history, Call history, Contacts, Installed apps, Contacts (live), Photos and videos (live), Location (live),…
5
votes
2 answers

Which restriction an app with CloudKit has if user does not turn on iCloud Drive

Which CloudKit services are not available if user not turns on iCloud Drive? Is it any way to turn on iCloud Drive from app? I guess downloading records from public container should work regardless iCloud Drive, writing container only if it is…
János
  • 32,867
  • 38
  • 193
  • 353
5
votes
0 answers

Why user's iCloud Drive need to turn on for CloudKit based app uses only public container?

To be able to fetch user record ID in app uses only public container, there is more requirements from my experience: user should be logged in to iCloud iCloud Drive should be turned on for app be online Why second condition is required?
János
  • 32,867
  • 38
  • 193
  • 353
4
votes
1 answer

Document browser app in iOS 15 keeps creating iCloud drive folder

I have had a document browser app up since iOS 11 (using UIKit/UIDocumentBrowserViewController). The app (let's call it "MyApp") used to create a "MyApp" folder in iCloud Drive (and/or on the device, depending on the choice made in Settings), where…
4
votes
1 answer

Application's iCloud drive folder doesn't show in macOS

I have an app that needs to store video files in it's own container folder in iCloud Drive. I have tried suggestions from most forums and I still couldn't resolve this issue. These are the things I did to setup a cloud container for my app - Added…
1
2
3
12 13