icloud-drive

Document saved on iCloud Drive seems not to be downloaded on iOS

南笙酒味 提交于 2021-02-18 18:14:34
问题 I'll let the user save backup of his data using iCloud drive. That works good. But if I switch to another iCloud Drive enabled device, I can't read the file. I can see the backup file within the iCloud Drive App, but it's not downloaded, (it shows the "download from icloud symbol). Is it possible to force the download of all files available within the directory if the user wants to restore a backup? Using Swift 2 on iOS 8/9. 回答1: I've solved this by myself. I'll check whether my backup file

No permission to read iCloud Drive file

女生的网名这么多〃 提交于 2020-12-06 04:32:13
问题 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 taps on the file. But it is not possible to open the file, with the error that the app has no permissions to do so. My app has "Supports opening documents in place" in the Info.plist set to YES. This means the URL points to an iCloud directory

Github repo cloned to synced iCloud drive on multiple computers

大兔子大兔子 提交于 2020-04-10 03:24:22
问题 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 iCloud-synced directories. However, I have been having lots of problems with this. It seems very easy to get into a condition where iCloud (not git) gets so confused that one machine effectively stops syncing, even files that have nothing to do with

Github repo cloned to synced iCloud drive on multiple computers

天涯浪子 提交于 2020-04-10 03:24:07
问题 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 iCloud-synced directories. However, I have been having lots of problems with this. It seems very easy to get into a condition where iCloud (not git) gets so confused that one machine effectively stops syncing, even files that have nothing to do with

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

北城余情 提交于 2020-03-23 06:23:09
问题 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 some time now. Yesterday, I backed up my MacBook Pro to MacOs Catalina 10.15.2 and this seems to have exacerbated the following pecularity I noticed this in my git initialized project folders: A lot of times when I deleted files from my local worktree

Detect if file is in iCloudDrive Trash

天大地大妈咪最大 提交于 2020-01-14 19:23:07
问题 Is there a way to detect if a file located on iCloudDrive has been moved to the iCloudDrive trash? I could check the URL to contain ".Trash" but I am looking for an official way to retrieve this. 回答1: To detect if a file/folder is in Trash use following code: NSURLRelationship relationship; NSError *error; [[NSFileManager defaultManager] getRelationship:&relationship ofDirectory:NSTrashDirectory inDomain:0 toItemAtURL:URL error:&error]; if (relationship == NSURLRelationshipContains) { //file

iCloud versus iCloud Drive versus CloudKit

倖福魔咒の 提交于 2020-01-14 03:16:07
问题 Would I be correct in assuming that a user of my iOS app that uses CloudKit would not need to pay a monthly fee to Apple to use my CloudKit app? Apple just changed from annual to monthly for anything above 5GB for iCloud... or is it unrelated? I've been hunting around Apples development site and I cannot seem to find a reference for who gets charged a fee for use of CloudKit. WWDC made brief reference that there is a limit that can be reached and it seemed like they were indicating that the

Download image from iCloud Drive iOS objective C

自作多情 提交于 2019-12-25 05:24:26
问题 I have gone through many links, but nothing worked for me. All i need to do is fetch all iCloud Drive files and download images. I succeeded fetching all files using below code - (void)presentDocumentPicker { NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code ", @"public.image", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];

Download image from iCloud Drive iOS objective C

狂风中的少年 提交于 2019-12-25 05:24:03
问题 I have gone through many links, but nothing worked for me. All i need to do is fetch all iCloud Drive files and download images. I succeeded fetching all files using below code - (void)presentDocumentPicker { NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code ", @"public.image", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];