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

Cellular Data for iCloud Backup
I think it is about time iCloud Backup should be extended to enable Cellular Data be enabled for it's data Use. My Understanding has been those from Africa and other less highly technological places have had it difficult in backing up their phones on iCloud due to the exclusive request for Wi-Fi. At these places Cellular data is mostly the source of readily source for for all internet connectivity's. So I think there should be a conscious effort to allow iCloud Backups through Cellular Data.
0
0
877
May ’23
CKQuery with NSPredicate fails when using “CONTAINS” operator
According to Apples Class Reference CKQuery, the operator "CONTAINS" is one of the suported operators. However, that doesn't seem to work. I have a recordtype called myRecord, and a record with filedname "name" type String. I try to fetch the record with two different predicates, one with "==" operator, and one with "CONTAINS" operator.func getRecords(){ let name = "John" let Predicate1 = NSPredicate(format: "name == %@",name) let Predicate2 = NSPredicate(format: "name CONTAINS %@",name) let sort = NSSortDescriptor(key: "Date", ascending: false) let query = CKQuery(recordType: "myRecord", predicate: Predicate1) //let query = CKQuery(recordType: "myRecord", predicate: Predicate2) query.sortDescriptors = [sort] let operation = CKQueryOperation(query: query) operation.desiredKeys = ["name", "Date"] operation.recordFetchedBlock = { (record) in print(record["name"]) operation.queryCompletionBlock = { [unowned self] (cursor, error) in dispatch_async(dispatch_get_main_queue()) { if error == nil { print ("sucess") } else { print("couldn't fetch record error:\(error?.localizedDescription)") } } } CKContainer.defaultContainer().publicCloudDatabase.addOperation(operation) }Using Predicate1, outout is: Optional(John) sucessUsing Predicate2, outout is: couldn't fetch record error:Optional("Field \'name\' has a value type of STRING and cannot be queried using filter type LIST_CONTAINS")Also using [c] to ignore casings gives a crash.How do I use the operator "CONTAINS" correctly, and how do I ignore letter casings?
4
0
3.2k
May ’23
How do CloudKit containers handle app transfers?
I’m slightly confused about how are CloudKit containers supposed to handle app transfers. I’m seeing some strange too-permissive security behavior, and I am not sure whether this is a feature or a bug 🙂Here’s the setup:I had an app with bundleID com.example.something, talking to a CloudKit container also called com.example.something, all under the same developer account A. All was well.I then transferred the app from developer account A to developer account B. The bundle ID or anything else about the app did not change, just the ownership. Must now also sign new builds of the app with credentials for account B, as expected. HOWEVER: the CK container also did not change at all, and remained under development account A.What I am seeing now: the app signed by developer account B can still access the CK container under developer account A. No bundle IDs or CK ID-s changed, so I can sort of understand this, but at the same time, it seems strange.There is no security risk to my data, as this app only uses "read" operation of the public database. I didn’t try any other operations or private databases.Is this a bug and could it stop working? Or is this a feature which will remain working? This tells me that under certain conditions, any app can read the CK container of any other app from any developer account, if they know the correct CK container ID to talk to. Is this expected? (Or maybe it only keeps working because they were previously under the same developer account, and the system knows to keep this connection? And if I were try to randomly read any other app’s container, it would fail?) Any docs or guidance from Apple?
8
0
4.1k
May ’23
Anyone know what this is? Texts with @ symbols
Texts from important people like lawyers and doctors started coming in like this.. with an @ symbol in between each letter within the text message. I have had problems in the past being hacked, and I also have some problems with battery life and receiving phone calls, emails and texts. also my Apple Cash won’t work it says there is a problem with my social security number. I don’t think the image worked.. but I was trying to post a screenshot of this. It looks like this :” H@i D@a@n@ d@i@d@ y@o@u …” the entire text comes in this way from both iPhones and androids. can’t find anything online any help is greatly appreciated! thanks
1
0
853
May ’23
CKShare - You cannot get the URL of a share until it's been saved to the server
Hi all,I am having trouble sharing a record. I have successfully saved the record to my private database in a custom zone, and I have successfully created a share email to that record. I have accepted the share and I now see the record in the share database of the recipient under the same zoneID. In the DB, it shows also that the share has been accepted.When I click on the share link and bring up the app, I get this message in the console:2019-04-05 13:21:11.553916-0300 StoryWheel[41594:6905300] [LogFacilityCK] You cannot get the URL of a share until it's been saved to the server2019-04-05 13:21:11.559670-0300 StoryWheel[41594:6905300] -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:]: Handling CloudKit Share Action with metadata: <CKShareMetadata: 0x6000017740a0; shareID=<CKRecordID: 0x60000261c9a0; recordName=Share-9F2CE009-3AC0-4658-AC0A-E4FE33664068, zoneID=storywheel:_1b1d6baf4f1340d8a7d80abf12a31551>, Owner=<CKUserIdentity: 0x60000027adc0; lookupInfo=<CKUserIdentityLookupInfo: 0x60000280d4a0; email=awilcox@xxx.ca>, cached=0, nameComponents=Andrew, userID=<CKRecordID: 0x60000261cfsx0; recordName=_1b1d6baf4f1340d8a7d80abf12a31551, zoneID=_defaultZone:__defaultOwner__>, contactIdentifiers={ items = ( );}>, participantStatus=Accepted, container=iCloud.ca.xxx.storywheel1:Sandbox, rootRecordID=<CKRecordID: 0x60000261ce80; recordName=D3D7F7BF-46B1-4CE0-8620-FE1919BD9A66, zoneID=storywheel:_1b1d6baf4f1340d8a7d80abf12a31551>, participantPermission=ReadWrite, shareURL=<null>, participantRole=PrivateUser>Not sure I understand the error message, as the record seems to be on the server. Anyone else seen this?Thanks,Andy
5
0
3.4k
May ’23
iCloud on Simulator Questions
Hi My app uses .csv files that can also be loaded by spreadsheets like Numbers, it is not document based. I recently installed the SimpleiCloudDocument Apple sample code on the simulator (logging into my development iCloud account, which is also my personal iCloud account) and my iPhone and set up a new iCloud container based on the bundle id, etc. At first I did not have iCloud Drive enabled on the simulator so I had to restart the demo. After that, SimpleiCloudDocument works as advertised syncing docs on both devices. After working with SimpleiCloudDocument I noticed that all of my own app related .csv files disappeared, even those stored in the Numbers iCloud Drive directory. Other files in unrelated iCloud app folders also disappeared. They are not listed in the "recently deleted". Some files were restored to the directory shortly afterwards, but appeared to be empty. I saw a thread from 3 years ago mentioning problems with iCloud and the iPhone simulator. Has anyone else had more recent problems? Can one safely use the simulator with iCloud testing? Any insights appreciated. Thank you.
2
0
1.1k
Apr ’23
NSCloudKitMirroringExportRequest issues
I'm attempting to create a Swift/SwiftUI app that will run on iOS/iPadOS that uses CloudKit to syncronize data between devices. I have created the App in Xcode.In the Apps Signing & Capabilities tab, I have:- Ensured that the Bundle Identifier is valid- Added the iCloud capability - Created the Container and checked it - Validated that the Container was created in the CloudKit Dashbaord- Added the Backgrouind Modes capability - Checked the Remote notifications optionI have modified/validated AppDelegate.swift:- Validated that it is using NSPersistentCloudKitContainer- Added container.viewContext.automaticallyMergesChangesFromParent to true- Added container.viewContext.mergePolicy to NSMergeByPropertyObjectTrumpMergePolicyWhen I load the App, I get a series of errors reported related to CloudKit NSCloudKitMirroringExportRequest. These errors are shown below. I am able to create records, but can see they are only stored locally and do not get synced to the CloudKit Dashboard - interestingly enough, the schema has been created in CloudKit Dashboard - so I know some level of connection has been made.I appreciate any insight that someone can give me to resolve this and allow my data to sync properly.CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedExportWithLabel:activity:completionHandler:]_block_invoke(2174): <NSCloudKitMirroringDelegate: 0x600003ef0c60> - Finished automatic export - ExportActivity - with result: <NSCloudKitMirroringResult: 0x60000096cc40> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'.}CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' with result: <NSCloudKitMirroringResult: 0x60000096cc40> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'.}CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke(714): <NSCloudKitMirroringDelegate: 0x600003ef0c60>: enqueuing request: <NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke_2(724): Failed to enqueue request: <NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedImportWithLabel:activity:completionHandler:]_block_invoke(2150): <NSCloudKitMirroringDelegate: 0x600003ef0c60> - Finished automatic import - ImportActivity - with result: <NSCloudKitMirroringResult: 0x60000096f0c0> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' with result: <NSCloudKitMirroringResult: 0x60000096f0c0> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}
21
1
14k
Apr ’23
iCloud Drive Corrupting Xcode Projects
I've been experiencing an issue with MacOS 13.2 and 13.3 where Xcode projects located in iCloud Drive (i.e in the Documents folder) seem to become corrupted. When trying to open them, Xcode freezes and becomes unresponsive but these projects open fine when cloned to a local directory suggesting it has something to do with them being in iCloud Drive specifically. Has anyone else experience this issue? I've tried erasing and restoring my Mac as well as turning iCloud Drive on and off with no luck.
2
0
1.2k
Mar ’23
iCloud Drive app folder does not reappear
I am working on implementing iCloud Drive support in my app. Initially, I got the folder to appear but I had to do some bug fixes for the version currently in the App Store (thus removing iCloud Capabilities). Now I am trying to re-enable it but I cannot get the folder to re-appear. The container and files still exist when I am checking the directories on my Mac. I have tried increasing the build and bundle version, checked the entitlements file along with my info.plist file but nothing seems to work.
0
0
635
Mar ’23
iCloud drive toggle in the app
We are integrating to our app iCloud sync between user devices. We have noticed that the user needs to enable iCloud drive in order to access to the public database, as suggested in the official documentation: https://developer.apple.com/documentation/cloudkit/enabling_cloudkit_in_your_app The problem is that in our first testflight session we have noticed that not every user has that option enabled and basically is making our app unusable for these users. There is a way to let the user enable that option from our app or access to the public database without problems? This is pretty annoying to us, there is a workaround or a better solution than showing how to enable the iCloud drive from the user settings?
0
1
846
Mar ’23
Initial delay with NSUbiquitousKeyValueStore
We are using iCloud key value storage(NSUbiquitousKeyValueStore) in our app to store some user data. I moved to a new device and logged into iCloud settings and if I immediately open our app and query for a value it returns nil. After considerable delay say 1 minute and if I query, then the proper stored value is returned. We called synchronize(), but it did not help. Is there any other way we can force sync and get a value immediately. Thanks Vinoth
1
1
1.2k
Mar ’23
Is there ability to get some unique value that associated with users appleId?
We are implementing some logic that requires to know users appleId or unique value associated with appleId which downloaded the application. I found an opaque token ubiquityIdentityToken that represents the current user’s iCloud Drive Documents identity. But it doesn't cover the scenario when user is logged in with appleId on device but iCloud is turned off - the value of this property is nil(according to documentation). I tried to implement User Authentication with Sign in with Apple but user can authenticate with option "Hide my email" and proxy email doesn't guaranty that it is permanent associated email. Is there ability to get some unique value that associated with users appleId? Thanks for advices.
0
0
639
Mar ’23
iCloud GameCenter saves questions
Hi there, We have published a game with iCloud save options, and we have gotten some reports from players that are having some kind of issue with their saves getting erased. When testing the game build, everything seems in place and we can't replicate the error, which makes us thing the issue is related with the iCloud save storage. We would like to run some tests by disabling this feature to confirm our suspects, but we are afraid of the impact over the existing player base who has no issues with their saves.  Is there any way of running this test in a controlled environment i.e testing group? We have seen the disable option in our dashboard, which indicates you need to enable/disable this feature when publishing a new build. Is there anything else we should have in mind? If we disable the iCloud saving, are the local saves of the players safe? We are worried about hypothetical issues where the lack of this feature overwrites with "no save" the existing local save on the phone.   Thank you!
0
0
515
Mar ’23
NSUbiquitousContainerName
Hello All,I am having trouble to getting my application name(NSUbiquitousContainerName) under iCloud Drive > Manage Storage.It takes default bundle identifier "AppList" as a application name under Manage Storage. I want App List(Blank space between App List) under iCloud Drive > Manage Storage. i also updated version and build number of the app.I have added the following in my info.plist file :<dict> <key>iCloud.com.applist.AppList</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App List</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>One</string> </dict></dict>I have added the following in my entitlements file :<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.developer.icloud-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.icloud-services</key> <array> <string>CloudDocuments</string> <string>CloudKit</string> </array> <key>com.apple.developer.ubiquity-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string></dict></plist>Can any one help to resolve this issue.- Nandpal
1
1
2.4k
Feb ’23
CloudKit record exists (added days ago), does not get returned by query but can be fetched by ID
I have a situation where a CloudKit record is not being returned by a query (and also doesn't appear in the CloudKit dashboard), but it exists when fetching it by it's ID.The record was added days ago, so it really should have been indexed.The record ID metadata index has always been set for the record type.The query I use is fetching all records for a particular record type in a custom zone.Strangely, when I search for the record in the dashboard and select it, the record name field is blank on the detail panel.It's very peculiar, and very concerning!Anyone have any ideas?
7
0
4.3k
Feb ’23
CKRecordValue type NSDate stores nil value?
In the development of an app, one of its UITextField is designed to allow users to use input view of datePicker view to pick a date and also allows the users to delete a displayed date via clear button as a overlay view in the textField while edting. Data is stored via Cloudkit and a CKRecordValue type - NSDate is used for that UITextField. My question is how to change the NSDate to reflect the user deleting an existing date on the textField? It seems NSDate can't be nil as I got atomic error when trying to save a nil date. Direct database like MySQL gives an option of null value and I wonder if we may set a NSDate type to allow nil input?
4
0
1.7k
Feb ’23
Cellular Data for iCloud Backup
I think it is about time iCloud Backup should be extended to enable Cellular Data be enabled for it's data Use. My Understanding has been those from Africa and other less highly technological places have had it difficult in backing up their phones on iCloud due to the exclusive request for Wi-Fi. At these places Cellular data is mostly the source of readily source for for all internet connectivity's. So I think there should be a conscious effort to allow iCloud Backups through Cellular Data.
Replies
0
Boosts
0
Views
877
Activity
May ’23
CKQuery with NSPredicate fails when using “CONTAINS” operator
According to Apples Class Reference CKQuery, the operator "CONTAINS" is one of the suported operators. However, that doesn't seem to work. I have a recordtype called myRecord, and a record with filedname "name" type String. I try to fetch the record with two different predicates, one with "==" operator, and one with "CONTAINS" operator.func getRecords(){ let name = "John" let Predicate1 = NSPredicate(format: "name == %@",name) let Predicate2 = NSPredicate(format: "name CONTAINS %@",name) let sort = NSSortDescriptor(key: "Date", ascending: false) let query = CKQuery(recordType: "myRecord", predicate: Predicate1) //let query = CKQuery(recordType: "myRecord", predicate: Predicate2) query.sortDescriptors = [sort] let operation = CKQueryOperation(query: query) operation.desiredKeys = ["name", "Date"] operation.recordFetchedBlock = { (record) in print(record["name"]) operation.queryCompletionBlock = { [unowned self] (cursor, error) in dispatch_async(dispatch_get_main_queue()) { if error == nil { print ("sucess") } else { print("couldn't fetch record error:\(error?.localizedDescription)") } } } CKContainer.defaultContainer().publicCloudDatabase.addOperation(operation) }Using Predicate1, outout is: Optional(John) sucessUsing Predicate2, outout is: couldn't fetch record error:Optional("Field \'name\' has a value type of STRING and cannot be queried using filter type LIST_CONTAINS")Also using [c] to ignore casings gives a crash.How do I use the operator "CONTAINS" correctly, and how do I ignore letter casings?
Replies
4
Boosts
0
Views
3.2k
Activity
May ’23
How do CloudKit containers handle app transfers?
I’m slightly confused about how are CloudKit containers supposed to handle app transfers. I’m seeing some strange too-permissive security behavior, and I am not sure whether this is a feature or a bug 🙂Here’s the setup:I had an app with bundleID com.example.something, talking to a CloudKit container also called com.example.something, all under the same developer account A. All was well.I then transferred the app from developer account A to developer account B. The bundle ID or anything else about the app did not change, just the ownership. Must now also sign new builds of the app with credentials for account B, as expected. HOWEVER: the CK container also did not change at all, and remained under development account A.What I am seeing now: the app signed by developer account B can still access the CK container under developer account A. No bundle IDs or CK ID-s changed, so I can sort of understand this, but at the same time, it seems strange.There is no security risk to my data, as this app only uses "read" operation of the public database. I didn’t try any other operations or private databases.Is this a bug and could it stop working? Or is this a feature which will remain working? This tells me that under certain conditions, any app can read the CK container of any other app from any developer account, if they know the correct CK container ID to talk to. Is this expected? (Or maybe it only keeps working because they were previously under the same developer account, and the system knows to keep this connection? And if I were try to randomly read any other app’s container, it would fail?) Any docs or guidance from Apple?
Replies
8
Boosts
0
Views
4.1k
Activity
May ’23
Anyone know what this is? Texts with @ symbols
Texts from important people like lawyers and doctors started coming in like this.. with an @ symbol in between each letter within the text message. I have had problems in the past being hacked, and I also have some problems with battery life and receiving phone calls, emails and texts. also my Apple Cash won’t work it says there is a problem with my social security number. I don’t think the image worked.. but I was trying to post a screenshot of this. It looks like this :” H@i D@a@n@ d@i@d@ y@o@u …” the entire text comes in this way from both iPhones and androids. can’t find anything online any help is greatly appreciated! thanks
Replies
1
Boosts
0
Views
853
Activity
May ’23
CKShare - You cannot get the URL of a share until it's been saved to the server
Hi all,I am having trouble sharing a record. I have successfully saved the record to my private database in a custom zone, and I have successfully created a share email to that record. I have accepted the share and I now see the record in the share database of the recipient under the same zoneID. In the DB, it shows also that the share has been accepted.When I click on the share link and bring up the app, I get this message in the console:2019-04-05 13:21:11.553916-0300 StoryWheel[41594:6905300] [LogFacilityCK] You cannot get the URL of a share until it's been saved to the server2019-04-05 13:21:11.559670-0300 StoryWheel[41594:6905300] -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:]: Handling CloudKit Share Action with metadata: <CKShareMetadata: 0x6000017740a0; shareID=<CKRecordID: 0x60000261c9a0; recordName=Share-9F2CE009-3AC0-4658-AC0A-E4FE33664068, zoneID=storywheel:_1b1d6baf4f1340d8a7d80abf12a31551>, Owner=<CKUserIdentity: 0x60000027adc0; lookupInfo=<CKUserIdentityLookupInfo: 0x60000280d4a0; email=awilcox@xxx.ca>, cached=0, nameComponents=Andrew, userID=<CKRecordID: 0x60000261cfsx0; recordName=_1b1d6baf4f1340d8a7d80abf12a31551, zoneID=_defaultZone:__defaultOwner__>, contactIdentifiers={ items = ( );}>, participantStatus=Accepted, container=iCloud.ca.xxx.storywheel1:Sandbox, rootRecordID=<CKRecordID: 0x60000261ce80; recordName=D3D7F7BF-46B1-4CE0-8620-FE1919BD9A66, zoneID=storywheel:_1b1d6baf4f1340d8a7d80abf12a31551>, participantPermission=ReadWrite, shareURL=<null>, participantRole=PrivateUser>Not sure I understand the error message, as the record seems to be on the server. Anyone else seen this?Thanks,Andy
Replies
5
Boosts
0
Views
3.4k
Activity
May ’23
iCloud upload stuck/doesn't work
Trying to sync a simple folder if media and it gets stuck second time. No way to cancel, close or do anything with it. Looks like issue is wide spread for years. Apple, this is how you treat paying users?
Replies
1
Boosts
0
Views
672
Activity
Apr ’23
iCloud Deleted my Photos
So a while ago i backed up my photos in Pictures/iCloud Photos/ i reinstalled iCloud cuz of AltStore, iCloud fucking deleted it's folder and my 40GB of backed up photos wtf
Replies
1
Boosts
0
Views
615
Activity
Apr ’23
iCloud on Simulator Questions
Hi My app uses .csv files that can also be loaded by spreadsheets like Numbers, it is not document based. I recently installed the SimpleiCloudDocument Apple sample code on the simulator (logging into my development iCloud account, which is also my personal iCloud account) and my iPhone and set up a new iCloud container based on the bundle id, etc. At first I did not have iCloud Drive enabled on the simulator so I had to restart the demo. After that, SimpleiCloudDocument works as advertised syncing docs on both devices. After working with SimpleiCloudDocument I noticed that all of my own app related .csv files disappeared, even those stored in the Numbers iCloud Drive directory. Other files in unrelated iCloud app folders also disappeared. They are not listed in the "recently deleted". Some files were restored to the directory shortly afterwards, but appeared to be empty. I saw a thread from 3 years ago mentioning problems with iCloud and the iPhone simulator. Has anyone else had more recent problems? Can one safely use the simulator with iCloud testing? Any insights appreciated. Thank you.
Replies
2
Boosts
0
Views
1.1k
Activity
Apr ’23
NSCloudKitMirroringExportRequest issues
I'm attempting to create a Swift/SwiftUI app that will run on iOS/iPadOS that uses CloudKit to syncronize data between devices. I have created the App in Xcode.In the Apps Signing & Capabilities tab, I have:- Ensured that the Bundle Identifier is valid- Added the iCloud capability - Created the Container and checked it - Validated that the Container was created in the CloudKit Dashbaord- Added the Backgrouind Modes capability - Checked the Remote notifications optionI have modified/validated AppDelegate.swift:- Validated that it is using NSPersistentCloudKitContainer- Added container.viewContext.automaticallyMergesChangesFromParent to true- Added container.viewContext.mergePolicy to NSMergeByPropertyObjectTrumpMergePolicyWhen I load the App, I get a series of errors reported related to CloudKit NSCloudKitMirroringExportRequest. These errors are shown below. I am able to create records, but can see they are only stored locally and do not get synced to the CloudKit Dashboard - interestingly enough, the schema has been created in CloudKit Dashboard - so I know some level of connection has been made.I appreciate any insight that someone can give me to resolve this and allow my data to sync properly.CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedExportWithLabel:activity:completionHandler:]_block_invoke(2174): <NSCloudKitMirroringDelegate: 0x600003ef0c60> - Finished automatic export - ExportActivity - with result: <NSCloudKitMirroringResult: 0x60000096cc40> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'.}CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' with result: <NSCloudKitMirroringResult: 0x60000096cc40> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringExportRequest: 0x6000007545a0> B79831CF-9C04-4BB0-90B7-974EB38D2A25' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'.}CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke(714): <NSCloudKitMirroringDelegate: 0x600003ef0c60>: enqueuing request: <NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke_2(724): Failed to enqueue request: <NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedImportWithLabel:activity:completionHandler:]_block_invoke(2150): <NSCloudKitMirroringDelegate: 0x600003ef0c60> - Finished automatic import - ImportActivity - with result: <NSCloudKitMirroringResult: 0x60000096f0c0> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' with result: <NSCloudKitMirroringResult: 0x60000096f0c0> success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 "Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'." UserInfo={NSLocalizedFailureReason=Request '<NSCloudKitMirroringImportRequest: 0x6000007a7450> D59C4B33-4075-4A43-AEF0-88EDD466D644' was cancelled because there is already a pending request of type 'NSCloudKitMirroringImportRequest'.}
Replies
21
Boosts
1
Views
14k
Activity
Apr ’23
iCloud Drive Corrupting Xcode Projects
I've been experiencing an issue with MacOS 13.2 and 13.3 where Xcode projects located in iCloud Drive (i.e in the Documents folder) seem to become corrupted. When trying to open them, Xcode freezes and becomes unresponsive but these projects open fine when cloned to a local directory suggesting it has something to do with them being in iCloud Drive specifically. Has anyone else experience this issue? I've tried erasing and restoring my Mac as well as turning iCloud Drive on and off with no luck.
Replies
2
Boosts
0
Views
1.2k
Activity
Mar ’23
iCloud Drive app folder does not reappear
I am working on implementing iCloud Drive support in my app. Initially, I got the folder to appear but I had to do some bug fixes for the version currently in the App Store (thus removing iCloud Capabilities). Now I am trying to re-enable it but I cannot get the folder to re-appear. The container and files still exist when I am checking the directories on my Mac. I have tried increasing the build and bundle version, checked the entitlements file along with my info.plist file but nothing seems to work.
Replies
0
Boosts
0
Views
635
Activity
Mar ’23
iCloud drive toggle in the app
We are integrating to our app iCloud sync between user devices. We have noticed that the user needs to enable iCloud drive in order to access to the public database, as suggested in the official documentation: https://developer.apple.com/documentation/cloudkit/enabling_cloudkit_in_your_app The problem is that in our first testflight session we have noticed that not every user has that option enabled and basically is making our app unusable for these users. There is a way to let the user enable that option from our app or access to the public database without problems? This is pretty annoying to us, there is a workaround or a better solution than showing how to enable the iCloud drive from the user settings?
Replies
0
Boosts
1
Views
846
Activity
Mar ’23
Initial delay with NSUbiquitousKeyValueStore
We are using iCloud key value storage(NSUbiquitousKeyValueStore) in our app to store some user data. I moved to a new device and logged into iCloud settings and if I immediately open our app and query for a value it returns nil. After considerable delay say 1 minute and if I query, then the proper stored value is returned. We called synchronize(), but it did not help. Is there any other way we can force sync and get a value immediately. Thanks Vinoth
Replies
1
Boosts
1
Views
1.2k
Activity
Mar ’23
Ragnarok X : Next Generation won't RUn on macbook pro m1 pro 16GB
Hello guys, if somone know why ragnaarok X : next Generation wont run on my macbook pro m1 pro 16GB ? I installed it froom appstore. I see others can run it on mabook m1 on youtube. may somebody knows how to run it on macbook ? Thank you
Replies
1
Boosts
0
Views
694
Activity
Mar ’23
Is there ability to get some unique value that associated with users appleId?
We are implementing some logic that requires to know users appleId or unique value associated with appleId which downloaded the application. I found an opaque token ubiquityIdentityToken that represents the current user’s iCloud Drive Documents identity. But it doesn't cover the scenario when user is logged in with appleId on device but iCloud is turned off - the value of this property is nil(according to documentation). I tried to implement User Authentication with Sign in with Apple but user can authenticate with option "Hide my email" and proxy email doesn't guaranty that it is permanent associated email. Is there ability to get some unique value that associated with users appleId? Thanks for advices.
Replies
0
Boosts
0
Views
639
Activity
Mar ’23
Messages in iCloud taking up space after deleting Conversations
iCloud Message is still taking up 20GB of space even after I deleted all my conversations 2 months ago. My storage on the iPhone is only 300MB.
Replies
2
Boosts
0
Views
698
Activity
Mar ’23
iCloud GameCenter saves questions
Hi there, We have published a game with iCloud save options, and we have gotten some reports from players that are having some kind of issue with their saves getting erased. When testing the game build, everything seems in place and we can't replicate the error, which makes us thing the issue is related with the iCloud save storage. We would like to run some tests by disabling this feature to confirm our suspects, but we are afraid of the impact over the existing player base who has no issues with their saves.  Is there any way of running this test in a controlled environment i.e testing group? We have seen the disable option in our dashboard, which indicates you need to enable/disable this feature when publishing a new build. Is there anything else we should have in mind? If we disable the iCloud saving, are the local saves of the players safe? We are worried about hypothetical issues where the lack of this feature overwrites with "no save" the existing local save on the phone.   Thank you!
Replies
0
Boosts
0
Views
515
Activity
Mar ’23
NSUbiquitousContainerName
Hello All,I am having trouble to getting my application name(NSUbiquitousContainerName) under iCloud Drive > Manage Storage.It takes default bundle identifier "AppList" as a application name under Manage Storage. I want App List(Blank space between App List) under iCloud Drive > Manage Storage. i also updated version and build number of the app.I have added the following in my info.plist file :<dict> <key>iCloud.com.applist.AppList</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App List</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>One</string> </dict></dict>I have added the following in my entitlements file :<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.developer.icloud-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.icloud-services</key> <array> <string>CloudDocuments</string> <string>CloudKit</string> </array> <key>com.apple.developer.ubiquity-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string></dict></plist>Can any one help to resolve this issue.- Nandpal
Replies
1
Boosts
1
Views
2.4k
Activity
Feb ’23
CloudKit record exists (added days ago), does not get returned by query but can be fetched by ID
I have a situation where a CloudKit record is not being returned by a query (and also doesn't appear in the CloudKit dashboard), but it exists when fetching it by it's ID.The record was added days ago, so it really should have been indexed.The record ID metadata index has always been set for the record type.The query I use is fetching all records for a particular record type in a custom zone.Strangely, when I search for the record in the dashboard and select it, the record name field is blank on the detail panel.It's very peculiar, and very concerning!Anyone have any ideas?
Replies
7
Boosts
0
Views
4.3k
Activity
Feb ’23
CKRecordValue type NSDate stores nil value?
In the development of an app, one of its UITextField is designed to allow users to use input view of datePicker view to pick a date and also allows the users to delete a displayed date via clear button as a overlay view in the textField while edting. Data is stored via Cloudkit and a CKRecordValue type - NSDate is used for that UITextField. My question is how to change the NSDate to reflect the user deleting an existing date on the textField? It seems NSDate can't be nil as I got atomic error when trying to save a nil date. Direct database like MySQL gives an option of null value and I wonder if we may set a NSDate type to allow nil input?
Replies
4
Boosts
0
Views
1.7k
Activity
Feb ’23