Questions tagged [icloud-documents]
43 questions
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…

Luis Schliesske
- 163
- 1
- 6
7
votes
1 answer
Is it iCloud or is it my code?
I am using a slightly updated code of this question: Method for downloading iCloud files? Very confusing?
Here is an excerpt of the code:
private func downloadUbiquitiousItem(atURL url: URL) -> Void {
do {
try…

Janosch Hübner
- 1,584
- 25
- 44
6
votes
1 answer
Determine if a file is inside any macOS Trash folder
There's a similar question for iOS, but I found that the proprosed solutions do not work on macOS in all cases.
On a Mac, there are many possible Trash folders:
/.Trashes
~/.Trash
~/Library/Mobile Documents/com~apple~CloudDocs/.Trash – this one is…

Thomas Tempelmann
- 11,045
- 8
- 74
- 149
6
votes
1 answer
iCloud Document Directory for App is not Appearing at iCloud Directory in Files App
I have a problem with the iPhone app's Document folder with the iCloud Location on Files App.
My app's document folder appears on the Files App's Device side but it is not appearing on iCloud location of Files App.
The iCloud dashboard clearly shows…

Everglowing Comet
- 340
- 1
- 10
4
votes
2 answers
Merging UIDocument changes for iCloud conflicts
I've spent some days now trying to find, or figure out for myself, how to programmatically merge UIDocument changes when the notification UIDocumentStateChangedNotification fires and the document's state has UIDocumentStateInConflict set.
All the…

Seoras
- 1,286
- 13
- 21
4
votes
1 answer
File types association with my app
My app is capable exporting and importing txt files. CFBundleDocumentTypes and UTExportedTypeDeclarations in my .plist are as follows:
CFBundleDocumentTypes
CFBundleTypeIconFiles
…

grep
- 566
- 5
- 20
3
votes
0 answers
How to prevent automatic file eviction in iCloud Documents?
When I save (either create or update) a small file in the iCloud container of my iOS app, the iCloud daemon first uploads the file to iCloud and then evicts it when the upload is done. If I monitor the file's state using a NSMetadataQuery I can see…

Theo
- 3,826
- 30
- 59
3
votes
1 answer
What different ways are there for apps to store data in iCloud and which are visible from the iCloud Manage Storage
There seem to be a few different ways for an app to store data in iCloud (iCloud Drive Documents, Core Data with iCloud Sync, CloudKit Private Databases, Key Value Pairs etc) but I'm not sure if that's all. Which of these different types of iCloud…

Aaron
- 31
- 2
3
votes
2 answers
iCLoud document picker from WKWebview dismissing container view
I have a WKWebview loading a web based UI where I would like users to be able to upload a file from their iCloud documents. I have granted the correct permissions and I am able to browse the iCloud documents. However when I either select a file or…

AndyRyan
- 1,500
- 12
- 23
3
votes
2 answers
Get notified on file changes in iCloud
I create a file with name File - 1.jpg on two different devices and put it in iCloud container.
I don't use UIDocument and even though I tried to use it, it does not create a conflict. Instead what I see is that documents are being automatically…

pronebird
- 12,068
- 5
- 54
- 82
2
votes
0 answers
how to use NSPersistentCloudKitContainer.eventChangedNotification
Hi I am trying to get event notification from NSPersistentCloudKitContainer to get notification if data change or not?
NSPersistentCloudKitContainer.eventChangedNotification
but I didn't find any simple example how to use it. doesnt any know to…

Steven
- 762
- 1
- 10
- 27
2
votes
1 answer
NSFileManager startDownloadingUbiquitousItemAtURL not working correctly on iOS14
I have an App in the AppStore since 2013 and it always worked flawlessly. It creates and syncs files on iCloud.
Since iOS14 startDownloadingUbiquitousItemAtURL only downloads a fraction of the existing files. If I start the App in the simulator and…

user1694772
- 71
- 5
2
votes
1 answer
iOS iCloud documents: can I prevent documents from being purged?
I have an app that stores documents in iCloud. iOS seems to regularly purge the local copies of the ubiquitous documents, forcing my users to re-download from iCloud. I had assumed this was due to low storage on the devices but I’ve experienced it…

SeanR
- 7,899
- 6
- 27
- 38
2
votes
0 answers
iCloud Drive Ubiquity Container Folder not showing
I am trying to help users synchronise files created by some other app. So my idea was to have an iCloud Drive folder (like iWork/iLife apps), where the user can save the files from the other app into my app's iCloud Drive folder where I can access…

Sam
- 819
- 2
- 7
- 17
2
votes
1 answer
Swift - Can't connect to iCloud documents
I am trying to use iCloud documents to store backup files from an iOS app (Xcode 11.3 and Swift 5).
I set up the base of the iCloud capability but I can't get an URL for the container.
Here is the iCloud capability setup
The entitlements file
The…

Bou
- 333
- 2
- 10