iCloud Drive

RSS for tag

iCloud Drive safely stores any kind of file so it can be accessed in iCloud-enabled apps on iPhone, iPad, Mac, or PC.

Posts under iCloud Drive tag

200 Posts

Post

Replies

Boosts

Views

Activity

How Can I Synchronize Safari Tap group between devices?
I used to synchronize it well between my Ipad and Iphone but when I update to IOS16 developer beta, my safari begun to occur bugs in Safari so I turn off Safari in Icloud but when I turn on the Safari toggle in Icloud, they didnt sync between devices. I did toggle off the Safari toggl in cloud, in all devices, and turn off the device and turn on, erase backups, update new IOS with desktop and so many method to solve this problem. Does anyone have same issue with me and solve the problem? Plz save me from this suffer.
0
0
888
Dec ’22
Is there a programmatic way to know the icloud status of a given local file?
The Finder displays the iCloud status (in the cloud, downloading, local) of every file associated with iCloud. How does it do this? Is there a way to search a given local folder and discover what the Finder knows? Is there a way to tell it programmatically to download any icloud files that aren’t downloaded?
1
0
1.9k
Nov ’22
Handoff with iCloud document-based app doesn't work
When tapping the Handoff icon of my app on the Mac or on the iPad, Xcode logs this error: [default personal] [ERROR] +[NSURL(BRAdditions) br_documentURLFromBookmarkableString:error:]: (passed to caller) error: Error Domain=BRCloudDocsErrorDomain Code=8 "Not Entitled" UserInfo={NSDescription=Not Entitled} When setting a breakpoint at NSApplicationDelegate.application(_:continue:restorationHandler:), I can see that userInfo.activityType is the one specified with the key NSUbiquitousDocumentUserActivityType under the Info.plist Document Types, but userActivity.userInfo is empty, so the document url is apparently not sent. Is there something else I have to set up?
1
0
1.7k
Nov ’22
on my iphone, ipad passcode says wrong but it isn’t.
i am trying to connect my messages from my ipad to my iphone. i tap the on thing and the continue for encrypted messages. the thing is when i put in my iphone passcode it was correct but not my ipad passcode. they had the same passcode, so i changed the iphone and now the ipad passcode, the one i didn’t change, doesn’t work. ik it’s correct. what should i do? what’s going on?? i restarted my phone too.
1
1
764
Nov ’22
Files are not visible on the iCloud Drive
My Enviroinment:xcode 8.2.1Swift 3.0MacOS 10.12.3Maybe I misunderstand how iCloud Drive is designed to work. My iPhone app will create files and store them in the app's ubiquitous file folder so they should appear in the icloud drive on the mac or PC. However the files are not visible with the mac finder even though the files do exist in the mac filesystem. More on this later.Here is my code to create the file:let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil) let documentDirectoryURL = containerURL!.appendingPathComponent("Documents") let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt") let text = String("test message") text.write(to: documentURL, atomically:true, encoding:String.Encoding.utf8)You can see I am using the app's default ubiquity container URL and appending the folder "Documents" and appending a filename. The app runs without any errors and I can confirm the file is created and viewable from the iCloud Drive app on the phone. In fact the iCloud Drive app on the iPhone will show me the correct folder name as I defined it with NSUbiquitousContainerName. I can also view this file on the Mac in a couple ways:1) Using the terminal program on the Mac I can see the file is created and updated correctly at this path: /Users/mjc/Library/Mobile Documents/iCloud~com~mchartier~motoproto1/Documents/myFile.txt2) Using the Mac Finder I can see the file when I click on "All My Files".However I do not see the file or the app's ubiquitous folder when I click on "iCloud Drive" on the Finder. Nor do I see anything on icloud.com or on my PC running iCloud software.Here is another weird behavior: Open the Finder and click on "all my files" and I see my file. Right click on the file and select "show in containing folder" and now I see my file appear with the full path to the file as you would expect. So far so good. Now when I click on "iCloud Drive" I see a new folder appear called "TextEdit" which was never there before. Now when I click on TextEdit I can see my file appear and I can open and view file contents. However, I still do not see anything on icloud.comI have iCloud enabled in my xcode project capabilities and I have my entitlements setup correctly as far as I can tell. I am using the default ubiquity container. I increased my build number each time I changed info.plist to make sure the settings will take affect. Here are relevant lines from info.plist :<key>NSUbiquitousContainers</key><dict><key>iCloud.com.mchartier.motoproto1</key><dict><key>NSUbiquitousContainerIsDocumentScopePublic</key><true/><key>NSUbiquitousContainerName</key><string>MotoProto1</string><key>NSUbiquitousContainerSupportedFolderLevels</key><string>None</string></dict></dict>So to summarize: My ubiquitous folder is not ubiquitous at all. The files created on the iPhone can only be viewed correctly by using the iCloud drive app on the phone itself. The files are clearly sent into the iCloud because they show up on the Mac filesystem but my app's ubiquity folder will not show up in the iCloud Drive folder in the Finder.
15
1
18k
Oct ’22
CloudKit CKFetchWebAuthTokenOperation
Hi all,I'm using Postman and sending through the request:https://api.apple-cloudkit.com/database/1/iCloud.com.xxx.yyy/development/private/records/lookup?ckAPIToken=[removed ckAPIToken]&ckWebAuthToken=[removed ckWebAuthToken]Standard up to now. The difference is that I'm getting the ckWebAuthToken from an iOS app running, by calling:CKFetchWebAuthTokenOperation ("[ckAPIToken]")When I try and use that token generated, I'm receiving:{ "uuid": "......-.......-[removed]-........-......", "serverErrorCode": "ACCESS_DENIED", "reason": "private db access disabled for this account"}Is this even possible? Is the token generated by CKFetchWebAuthTokenOperation a viable token to use for the private database? It seems to work correctly for the public database. I can use it to determine the correct user and read records that have been hidden to both World and Authenticated users based on the Security Roles. But as soon as I try to use the exact same process, instead using the private database, it returns the above error.Am I missing something blatantly obvious? I may have read somewhere that the Web Service access to development private databases isn't available, but then again, I might not have. Anyone got any help?Thanks in advance.
3
1
2.3k
Sep ’22
Empty NSMetadataQuery results when trying to list iCloud folder contents
The flow I'm trying to achieve is "Make a selection of files and folders in a document browser. Copy the selected items into a folder." The destination folder is static and resides in the application's Documents folder. What I have now goes like this: Present UIDocumentBrowserViewController with allowsPickingMultipleItems. Have the user pick a file stored in iCloud. In didPickDocumentsAtURLs download the file. Works fine. Have the user pick a folder item in iCloud. List the folder contents with NSFileManager. This returns a nice set of NSURLs, but by design these can't be actually used to initiate a download. List the folder contents using an NSMetadataQuery. My observer gets notified of NSMetadataQueryDidFinishGatheringNotification, but the query results are empty. Search scopes and predicate of the query are: [[self metadataQuery] setSearchScopes:[NSArray arrayWithObjects:NSMetadataQueryUbiquitousDocumentsScope, NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, url, nil]]; [[self metadataQuery] setPredicate:[NSPredicate predicateWithFormat:[NSString stringWithFormat:@"%%K like '*.*'"]]]; I'm expecting the query results to be a list of files currently present in the provided scopes. I've tried a number of variations for scopes and predicates, but the query's results is always empty.
0
1
922
Sep ’22
I rsync between two iCLoud location and lost the files.
I asked the same question on normal apple community, but I doubt people care. So I am asking here as it looks like more engineering question. Is this done by design? I did rsync -avzP --remove-source-files between two locations in iCloud drive in terminal. Lot of *.icloud files were copied, removed from source but they did not appear in destinations. So essentially I lost several video files. Being desperate I tried to do this with another set of videos that I can not regret deleting and the results are the same - directories were copied, files was lost, source directories was not removed. when I logged into iCloud drive on web browser and hit "recently deleted" there was zero files to recover. so what the hell? why rsync not copy properly important files? is it forbidden to ever touch *.icloud files?
1
0
1.2k
Sep ’22
"Field 'recordName' is not marked queryable" error when accessing cloud kit data
I am trying to load a list from cloud kit and getting a "Field 'recordName' is not marked queryable". The record type list is queryable. The field recordName is a system generated field that I cannot modify in the cloudkit dashboard. What can I do to load these items?let predicate: NSPredicate = NSPredicate(value: true) let query: CKQuery = CKQuery(recordType: "List", predicate: predicate) tView.text = "Fetching Icloud data" db.perform(query, inZoneWith: nil) { (records: [CKRecord]?, error: Error?) in if error != nil || records == nil{ print("Error in load: \(error!)") return } else{ var aList:[String] = [] for i in 0..<records!.count{ let record:CKRecord = records![i] aList.append(record.object(forKey: "item") as! String) } print("Records: \(records!)") OperationQueue.main.addOperation { self.tView.text = aList.joined(separator: "\n") } } }
9
0
16k
Sep ’22
Xcode 13.4.1 simulator with iCloud
iCloud Drive doesn't appear to work at all for me in the iOS 15.5 Simulator. As near as I can tell, it should. I've signed into my account in settings->Apple ID, iCloud, iTunes & App Store (and signed out/in several times). I've gone into iCloud settings and turned on/off/on/etc iCloud Drive and same for the app I'm developing. I've tried it on two different macs with the same results. When I use the Files app on the Simulator, it shows 0 items, 33.13 GB available. The 0 is wron but the 33.13 TB available is right so it's getting some of the info from iCloud Drive.
3
0
1.8k
Sep ’22
Deactivated iCloud Drive and Lost ALL my Documents
Someone please help. I had my iCloud Drive tick blue (it was activated) and synced to the documents on my MacBook. I had about 5 folders in my desktop. Because my MacBook was full of storage and I didn't need the documents to be stored in my MacBook, I decided to store them only on iCloud. So I unticked (deactivated) the iCloud Drive. I don't know if it was because the folders hadn't been uploaded to iCloud or something but when I deactivated the iCloud-macbook sync, this is what happened: the documents on my desktop disappeared (as expected) BUT when I accessed iCloud Drive on safari, they were NOWHERE to be found. What do I do?????
0
0
532
Aug ’22
ShareRecord: Unable to find applicationIdentifier for containerId
Our app supports iCloud CloudKit sharing and provides URLs of CKShare records to users (e.g. via UICloudSharingController). Clicking on the URL in the Apple Mail or Messages app in macOS or iOS works fine. Pasting the link into Safari on iOS also works fine.But including the link in a web page or pasting it into Safari or Chrome on macOS or Edge on Windows 10 (we have a fall-back web site for non-Apple users) results in a fatal "iCloud has stopped responding" error page displayed in the browser.The app is a "universal" app and is available in both the Mac App Store and iOS App Store. All the CloudKit features otherwise work fine on both platforms.Does anyone have an idea what we might do to solve this? Do we have something misconfigured somewhere?I've also submitted a DTS Technical Support Inquiry #735184444 and Feedback #FB7697827.For example:https://www.icloud.com/share/0bjtbTTaM5b7bG1ff6dnKFbmg#Wizard_StoriesResults in:"iCloud has stopped responding."DetailsAPP NAMEcloudos2CLIENT TIMEMon May 11 2020 14:04:46 GMT-0700 (PDT) (1589231086615)USER AGENTMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15HOSTNAMEwww.icloud.comBUILD INFO2007Hotfix35__2007Hotfix35__en-usSESSION IDe8317bf4-9fc6-4678-b3e9-e190619fdfa8ENVIRONMENT INFOPRODREPORTED ERROR TITLEShareRecord: Unable to find applicationIdentifier for containerId = iCloud.com.xxxxx.xxxxx and fileExtension = undefinedREPORTED ERROR TYPEUNHANDLED_EXCEPTIONERROR CONTEXTundefinedLINE NUMBER11STACKr@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88103a@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88150_getApplicationIdentifier@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:405433_extractCloudKitResponse@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:403382init@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:402391create@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:237251https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:408011r@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:439698i@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:180696promiseReactionJob@[native code]
7
1
3.5k
Aug ’22
CloudKit - “Invalid bundle ID for container”
I've just create a project in Xcode 9 beta 6 and add this code:let privateDB = CKContainer.default().privateCloudDatabase let greatID = CKRecordID(recordName: "GreatPlace") let place = CKRecord(recordType: "Place", recordID: greatID) privateDB.save(place) { (record, error) in if error != nil { let er = (error as! CKError).errorUserInfo print("Error: \n") print("CKErrorDescription: \(er["CKErrorDescription"]!)\n") print("ContainerID: \(er["ContainerID"]!)\n") print("NSDebugDescription: \(er["NSDebugDescription"]!)\n") print("NSUnderlyingError: \(er["NSUnderlyingError"]!)\n") print("NSLocalizedDescription: \(er["NSLocalizedDescription"]!)\n") print("ServerErrorDescription: \(er["ServerErrorDescription"]!)\n") } if record != nil { print("record: \(record!)") } }and add icloud capabilities with Use default containers and when I run the code I receive this erros message:Error: CKErrorDescription: Error saving record <CKRecordID: 0x7fd8e9684560; recordName=GreatPlace, zoneID=_defaultZone:__defaultOwner__> to server: Invalid bundle ID for container ContainerID: iCloud.com.gazapps.MyCloudKit NSDebugDescription: CKInternalErrorDomain: 2007 NSUnderlyingError: <CKError 0x60400005d0d0: "Permission Failure" (2007); server message = "Invalid bundle ID for container"; uuid = 73EDDA3F-25B1-4B22-8E8E-4F6B27B9AB06; container ID = "iCloud.com.gazapps.MyCloudKit"> NSLocalizedDescription: Error saving record <CKRecordID: 0x7fd8e9684560; recordName=GreatPlace, zoneID=_defaultZone:__defaultOwner__> to server: Invalid bundle ID for container ServerErrorDescription: Invalid bundle ID for containerWhat I am doing wrong ?
2
0
3.9k
Aug ’22
Access iCloud files from iOS
I have a macOS app that has access to all of the users iCloud files. This means that the app can see any file that the user can see using the Files app in iOS. How can I get access to the same files programmatically from within iOS? I know how to get access to the files in the container for that iOS app, but I don’t see how to get access to all the users iCloud files like the Files app. I‘m sure it can be done because there are lots of file manager apps that access all the users iCoud files.
3
1
11k
Aug ’22
Question about backup of isExcludedFromBackup
I have a few questions about files that are allowed to be backed up by setting isExcludedFromBackup to false . Is it correct that the files allowed to be backed up are backed up by iCloud and iTunes sync? Are the files allowed for backup always/periodically backed up to iCloud? Or does it only sync when the user manually backs up the device? If the files allowed for backup are regularly backed up to iCloud, will there be a capacity issue? (User's iCloud capacity) If there is issue 3 above, is it a good solution to add an option to the app so that users can turn it on/off?
1
0
1.1k
Aug ’22
Logitech circle view Camera no rekordindkøb or notifikation since installing iPadOS beta public
I got the following from Apple Support saying to write to you. I only have beta on my iPad not my iPhone. please help.? Thanks for participating in the Apple Support Community. We edited your post “My Logitech circle view Camera is not saving to iCloud and no notifikations when movement . " because it contained information about beta software. To comment or ask questions about beta software, go to our Apple Developer Forums page: https://developer.apple.com/forums/ Here you can share your "My Logitech circle view Camera is not saving to iCloud and no notifikations when movement . " post, make comments, and ask questions. For more information, see the Apple Beta Software Program page: https://beta.apple.com/sp/betaprogram We’ve included a copy of your original post below. Thanks, Apple Support Community Staff Hi Apple so since this Sunday my Camera is not recording video to iCloud when movement.  I have tried power off and 10min later power on again same issue.  I got a notification when the camera was offline and again online notification.  but no recording/notification when movement after.  If I set to notify when any movement I get notifications but since there are tree and more it goes off every 3 sec.  but again switching back to people, car and animals nothing happens.  any ideas on how to get recording and notification to work again.  ps I had the camera for almost 2 years and it has worked great.  I’ve added my iPhone but this is the same for IPad also (which runs IOS16 public beta) I’m looking forward to any insights you can provide. Is the an issue with your ICloud system?
0
0
587
Jul ’22
How Can I Synchronize Safari Tap group between devices?
I used to synchronize it well between my Ipad and Iphone but when I update to IOS16 developer beta, my safari begun to occur bugs in Safari so I turn off Safari in Icloud but when I turn on the Safari toggle in Icloud, they didnt sync between devices. I did toggle off the Safari toggl in cloud, in all devices, and turn off the device and turn on, erase backups, update new IOS with desktop and so many method to solve this problem. Does anyone have same issue with me and solve the problem? Plz save me from this suffer.
Replies
0
Boosts
0
Views
888
Activity
Dec ’22
Is there a programmatic way to know the icloud status of a given local file?
The Finder displays the iCloud status (in the cloud, downloading, local) of every file associated with iCloud. How does it do this? Is there a way to search a given local folder and discover what the Finder knows? Is there a way to tell it programmatically to download any icloud files that aren’t downloaded?
Replies
1
Boosts
0
Views
1.9k
Activity
Nov ’22
Handoff with iCloud document-based app doesn't work
When tapping the Handoff icon of my app on the Mac or on the iPad, Xcode logs this error: [default personal] [ERROR] +[NSURL(BRAdditions) br_documentURLFromBookmarkableString:error:]: (passed to caller) error: Error Domain=BRCloudDocsErrorDomain Code=8 "Not Entitled" UserInfo={NSDescription=Not Entitled} When setting a breakpoint at NSApplicationDelegate.application(_:continue:restorationHandler:), I can see that userInfo.activityType is the one specified with the key NSUbiquitousDocumentUserActivityType under the Info.plist Document Types, but userActivity.userInfo is empty, so the document url is apparently not sent. Is there something else I have to set up?
Replies
1
Boosts
0
Views
1.7k
Activity
Nov ’22
on my iphone, ipad passcode says wrong but it isn’t.
i am trying to connect my messages from my ipad to my iphone. i tap the on thing and the continue for encrypted messages. the thing is when i put in my iphone passcode it was correct but not my ipad passcode. they had the same passcode, so i changed the iphone and now the ipad passcode, the one i didn’t change, doesn’t work. ik it’s correct. what should i do? what’s going on?? i restarted my phone too.
Replies
1
Boosts
1
Views
764
Activity
Nov ’22
icloud
icloud 新增搜尋關鍵字功能,以便快速找尋資料夾。 多種變更設定資料夾檢視方式,以便快速檢閱資料夾資訊。
Replies
1
Boosts
0
Views
791
Activity
Oct ’22
Files are not visible on the iCloud Drive
My Enviroinment:xcode 8.2.1Swift 3.0MacOS 10.12.3Maybe I misunderstand how iCloud Drive is designed to work. My iPhone app will create files and store them in the app's ubiquitous file folder so they should appear in the icloud drive on the mac or PC. However the files are not visible with the mac finder even though the files do exist in the mac filesystem. More on this later.Here is my code to create the file:let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil) let documentDirectoryURL = containerURL!.appendingPathComponent("Documents") let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt") let text = String("test message") text.write(to: documentURL, atomically:true, encoding:String.Encoding.utf8)You can see I am using the app's default ubiquity container URL and appending the folder "Documents" and appending a filename. The app runs without any errors and I can confirm the file is created and viewable from the iCloud Drive app on the phone. In fact the iCloud Drive app on the iPhone will show me the correct folder name as I defined it with NSUbiquitousContainerName. I can also view this file on the Mac in a couple ways:1) Using the terminal program on the Mac I can see the file is created and updated correctly at this path: /Users/mjc/Library/Mobile Documents/iCloud~com~mchartier~motoproto1/Documents/myFile.txt2) Using the Mac Finder I can see the file when I click on "All My Files".However I do not see the file or the app's ubiquitous folder when I click on "iCloud Drive" on the Finder. Nor do I see anything on icloud.com or on my PC running iCloud software.Here is another weird behavior: Open the Finder and click on "all my files" and I see my file. Right click on the file and select "show in containing folder" and now I see my file appear with the full path to the file as you would expect. So far so good. Now when I click on "iCloud Drive" I see a new folder appear called "TextEdit" which was never there before. Now when I click on TextEdit I can see my file appear and I can open and view file contents. However, I still do not see anything on icloud.comI have iCloud enabled in my xcode project capabilities and I have my entitlements setup correctly as far as I can tell. I am using the default ubiquity container. I increased my build number each time I changed info.plist to make sure the settings will take affect. Here are relevant lines from info.plist :<key>NSUbiquitousContainers</key><dict><key>iCloud.com.mchartier.motoproto1</key><dict><key>NSUbiquitousContainerIsDocumentScopePublic</key><true/><key>NSUbiquitousContainerName</key><string>MotoProto1</string><key>NSUbiquitousContainerSupportedFolderLevels</key><string>None</string></dict></dict>So to summarize: My ubiquitous folder is not ubiquitous at all. The files created on the iPhone can only be viewed correctly by using the iCloud drive app on the phone itself. The files are clearly sent into the iCloud because they show up on the Mac filesystem but my app's ubiquity folder will not show up in the iCloud Drive folder in the Finder.
Replies
15
Boosts
1
Views
18k
Activity
Oct ’22
CloudKit CKFetchWebAuthTokenOperation
Hi all,I'm using Postman and sending through the request:https://api.apple-cloudkit.com/database/1/iCloud.com.xxx.yyy/development/private/records/lookup?ckAPIToken=[removed ckAPIToken]&ckWebAuthToken=[removed ckWebAuthToken]Standard up to now. The difference is that I'm getting the ckWebAuthToken from an iOS app running, by calling:CKFetchWebAuthTokenOperation ("[ckAPIToken]")When I try and use that token generated, I'm receiving:{ "uuid": "......-.......-[removed]-........-......", "serverErrorCode": "ACCESS_DENIED", "reason": "private db access disabled for this account"}Is this even possible? Is the token generated by CKFetchWebAuthTokenOperation a viable token to use for the private database? It seems to work correctly for the public database. I can use it to determine the correct user and read records that have been hidden to both World and Authenticated users based on the Security Roles. But as soon as I try to use the exact same process, instead using the private database, it returns the above error.Am I missing something blatantly obvious? I may have read somewhere that the Web Service access to development private databases isn't available, but then again, I might not have. Anyone got any help?Thanks in advance.
Replies
3
Boosts
1
Views
2.3k
Activity
Sep ’22
Data Size Limits for CloudKit
For the life of me I cannot find any documentation that explains the limits of how much space an app can use in the Public and Private database. How to get more Public space, and how to know we need to ask the user to get more iCloud storage for their private database. Any pointers appreciated...
Replies
0
Boosts
0
Views
1.3k
Activity
Sep ’22
Empty NSMetadataQuery results when trying to list iCloud folder contents
The flow I'm trying to achieve is "Make a selection of files and folders in a document browser. Copy the selected items into a folder." The destination folder is static and resides in the application's Documents folder. What I have now goes like this: Present UIDocumentBrowserViewController with allowsPickingMultipleItems. Have the user pick a file stored in iCloud. In didPickDocumentsAtURLs download the file. Works fine. Have the user pick a folder item in iCloud. List the folder contents with NSFileManager. This returns a nice set of NSURLs, but by design these can't be actually used to initiate a download. List the folder contents using an NSMetadataQuery. My observer gets notified of NSMetadataQueryDidFinishGatheringNotification, but the query results are empty. Search scopes and predicate of the query are: [[self metadataQuery] setSearchScopes:[NSArray arrayWithObjects:NSMetadataQueryUbiquitousDocumentsScope, NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, url, nil]]; [[self metadataQuery] setPredicate:[NSPredicate predicateWithFormat:[NSString stringWithFormat:@"%%K like '*.*'"]]]; I'm expecting the query results to be a list of files currently present in the provided scopes. I've tried a number of variations for scopes and predicates, but the query's results is always empty.
Replies
0
Boosts
1
Views
922
Activity
Sep ’22
I rsync between two iCLoud location and lost the files.
I asked the same question on normal apple community, but I doubt people care. So I am asking here as it looks like more engineering question. Is this done by design? I did rsync -avzP --remove-source-files between two locations in iCloud drive in terminal. Lot of *.icloud files were copied, removed from source but they did not appear in destinations. So essentially I lost several video files. Being desperate I tried to do this with another set of videos that I can not regret deleting and the results are the same - directories were copied, files was lost, source directories was not removed. when I logged into iCloud drive on web browser and hit "recently deleted" there was zero files to recover. so what the hell? why rsync not copy properly important files? is it forbidden to ever touch *.icloud files?
Replies
1
Boosts
0
Views
1.2k
Activity
Sep ’22
"Field 'recordName' is not marked queryable" error when accessing cloud kit data
I am trying to load a list from cloud kit and getting a "Field 'recordName' is not marked queryable". The record type list is queryable. The field recordName is a system generated field that I cannot modify in the cloudkit dashboard. What can I do to load these items?let predicate: NSPredicate = NSPredicate(value: true) let query: CKQuery = CKQuery(recordType: "List", predicate: predicate) tView.text = "Fetching Icloud data" db.perform(query, inZoneWith: nil) { (records: [CKRecord]?, error: Error?) in if error != nil || records == nil{ print("Error in load: \(error!)") return } else{ var aList:[String] = [] for i in 0..<records!.count{ let record:CKRecord = records![i] aList.append(record.object(forKey: "item") as! String) } print("Records: \(records!)") OperationQueue.main.addOperation { self.tView.text = aList.joined(separator: "\n") } } }
Replies
9
Boosts
0
Views
16k
Activity
Sep ’22
Check CloudKit Private Storage Capacity
I'm uploading assets to a private cloud database, but I'd like to check the account's storage availability before having the user upload. Any way to programmatically check the remaining capacity of a user's iCloud account?
Replies
1
Boosts
0
Views
2.0k
Activity
Sep ’22
Xcode 13.4.1 simulator with iCloud
iCloud Drive doesn't appear to work at all for me in the iOS 15.5 Simulator. As near as I can tell, it should. I've signed into my account in settings->Apple ID, iCloud, iTunes & App Store (and signed out/in several times). I've gone into iCloud settings and turned on/off/on/etc iCloud Drive and same for the app I'm developing. I've tried it on two different macs with the same results. When I use the Files app on the Simulator, it shows 0 items, 33.13 GB available. The 0 is wron but the 33.13 TB available is right so it's getting some of the info from iCloud Drive.
Replies
3
Boosts
0
Views
1.8k
Activity
Sep ’22
Deactivated iCloud Drive and Lost ALL my Documents
Someone please help. I had my iCloud Drive tick blue (it was activated) and synced to the documents on my MacBook. I had about 5 folders in my desktop. Because my MacBook was full of storage and I didn't need the documents to be stored in my MacBook, I decided to store them only on iCloud. So I unticked (deactivated) the iCloud Drive. I don't know if it was because the folders hadn't been uploaded to iCloud or something but when I deactivated the iCloud-macbook sync, this is what happened: the documents on my desktop disappeared (as expected) BUT when I accessed iCloud Drive on safari, they were NOWHERE to be found. What do I do?????
Replies
0
Boosts
0
Views
532
Activity
Aug ’22
ShareRecord: Unable to find applicationIdentifier for containerId
Our app supports iCloud CloudKit sharing and provides URLs of CKShare records to users (e.g. via UICloudSharingController). Clicking on the URL in the Apple Mail or Messages app in macOS or iOS works fine. Pasting the link into Safari on iOS also works fine.But including the link in a web page or pasting it into Safari or Chrome on macOS or Edge on Windows 10 (we have a fall-back web site for non-Apple users) results in a fatal "iCloud has stopped responding" error page displayed in the browser.The app is a "universal" app and is available in both the Mac App Store and iOS App Store. All the CloudKit features otherwise work fine on both platforms.Does anyone have an idea what we might do to solve this? Do we have something misconfigured somewhere?I've also submitted a DTS Technical Support Inquiry #735184444 and Feedback #FB7697827.For example:https://www.icloud.com/share/0bjtbTTaM5b7bG1ff6dnKFbmg#Wizard_StoriesResults in:"iCloud has stopped responding."DetailsAPP NAMEcloudos2CLIENT TIMEMon May 11 2020 14:04:46 GMT-0700 (PDT) (1589231086615)USER AGENTMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15HOSTNAMEwww.icloud.comBUILD INFO2007Hotfix35__2007Hotfix35__en-usSESSION IDe8317bf4-9fc6-4678-b3e9-e190619fdfa8ENVIRONMENT INFOPRODREPORTED ERROR TITLEShareRecord: Unable to find applicationIdentifier for containerId = iCloud.com.xxxxx.xxxxx and fileExtension = undefinedREPORTED ERROR TYPEUNHANDLED_EXCEPTIONERROR CONTEXTundefinedLINE NUMBER11STACKr@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88103a@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88150_getApplicationIdentifier@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:405433_extractCloudKitResponse@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:403382init@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:402391create@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:237251https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:408011r@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:439698i@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:180696promiseReactionJob@[native code]
Replies
7
Boosts
1
Views
3.5k
Activity
Aug ’22
CloudKit - “Invalid bundle ID for container”
I've just create a project in Xcode 9 beta 6 and add this code:let privateDB = CKContainer.default().privateCloudDatabase let greatID = CKRecordID(recordName: "GreatPlace") let place = CKRecord(recordType: "Place", recordID: greatID) privateDB.save(place) { (record, error) in if error != nil { let er = (error as! CKError).errorUserInfo print("Error: \n") print("CKErrorDescription: \(er["CKErrorDescription"]!)\n") print("ContainerID: \(er["ContainerID"]!)\n") print("NSDebugDescription: \(er["NSDebugDescription"]!)\n") print("NSUnderlyingError: \(er["NSUnderlyingError"]!)\n") print("NSLocalizedDescription: \(er["NSLocalizedDescription"]!)\n") print("ServerErrorDescription: \(er["ServerErrorDescription"]!)\n") } if record != nil { print("record: \(record!)") } }and add icloud capabilities with Use default containers and when I run the code I receive this erros message:Error: CKErrorDescription: Error saving record <CKRecordID: 0x7fd8e9684560; recordName=GreatPlace, zoneID=_defaultZone:__defaultOwner__> to server: Invalid bundle ID for container ContainerID: iCloud.com.gazapps.MyCloudKit NSDebugDescription: CKInternalErrorDomain: 2007 NSUnderlyingError: <CKError 0x60400005d0d0: "Permission Failure" (2007); server message = "Invalid bundle ID for container"; uuid = 73EDDA3F-25B1-4B22-8E8E-4F6B27B9AB06; container ID = "iCloud.com.gazapps.MyCloudKit"> NSLocalizedDescription: Error saving record <CKRecordID: 0x7fd8e9684560; recordName=GreatPlace, zoneID=_defaultZone:__defaultOwner__> to server: Invalid bundle ID for container ServerErrorDescription: Invalid bundle ID for containerWhat I am doing wrong ?
Replies
2
Boosts
0
Views
3.9k
Activity
Aug ’22
Access iCloud files from iOS
I have a macOS app that has access to all of the users iCloud files. This means that the app can see any file that the user can see using the Files app in iOS. How can I get access to the same files programmatically from within iOS? I know how to get access to the files in the container for that iOS app, but I don’t see how to get access to all the users iCloud files like the Files app. I‘m sure it can be done because there are lots of file manager apps that access all the users iCoud files.
Replies
3
Boosts
1
Views
11k
Activity
Aug ’22
Question about backup of isExcludedFromBackup
I have a few questions about files that are allowed to be backed up by setting isExcludedFromBackup to false . Is it correct that the files allowed to be backed up are backed up by iCloud and iTunes sync? Are the files allowed for backup always/periodically backed up to iCloud? Or does it only sync when the user manually backs up the device? If the files allowed for backup are regularly backed up to iCloud, will there be a capacity issue? (User's iCloud capacity) If there is issue 3 above, is it a good solution to add an option to the app so that users can turn it on/off?
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’22
Logitech circle view Camera no rekordindkøb or notifikation since installing iPadOS beta public
I got the following from Apple Support saying to write to you. I only have beta on my iPad not my iPhone. please help.? Thanks for participating in the Apple Support Community. We edited your post “My Logitech circle view Camera is not saving to iCloud and no notifikations when movement . " because it contained information about beta software. To comment or ask questions about beta software, go to our Apple Developer Forums page: https://developer.apple.com/forums/ Here you can share your "My Logitech circle view Camera is not saving to iCloud and no notifikations when movement . " post, make comments, and ask questions. For more information, see the Apple Beta Software Program page: https://beta.apple.com/sp/betaprogram We’ve included a copy of your original post below. Thanks, Apple Support Community Staff Hi Apple so since this Sunday my Camera is not recording video to iCloud when movement.  I have tried power off and 10min later power on again same issue.  I got a notification when the camera was offline and again online notification.  but no recording/notification when movement after.  If I set to notify when any movement I get notifications but since there are tree and more it goes off every 3 sec.  but again switching back to people, car and animals nothing happens.  any ideas on how to get recording and notification to work again.  ps I had the camera for almost 2 years and it has worked great.  I’ve added my iPhone but this is the same for IPad also (which runs IOS16 public beta) I’m looking forward to any insights you can provide. Is the an issue with your ICloud system?
Replies
0
Boosts
0
Views
587
Activity
Jul ’22
iCloud photo upload bug
While uploading photos on iCloud in multiple albums at the same time, same photos getting uploaded on all the selected albums. This should not happen, user should see the photos of respective albums only.
Replies
0
Boosts
0
Views
987
Activity
Jul ’22