Post

Replies

Boosts

Views

Activity

Reply to CKError 429 from CloudKit, using CKDiscoverAllUserIdentitiesOperation
if there is a question here, the answer is to do what it says "Retry after X seconds". The actual time is included in the info dictionary of the error. Here's a snippet from CloudCore, an open-source sync engine, that shows how it retrieves this info… private func handle(error: Error, …) { guard let cloudError = error as? CKError else { … return } switch cloudError.code { case .requestRateLimited, .zoneBusy, .serviceUnavailable: if let number = cloudError.userInfo[CKErrorRetryAfterKey] as? NSNumber { let pauseUntil = Date(timeIntervalSinceNow: number.doubleValue) } … } }
Dec ’22
Reply to Current CloudKit pricing?
I, too, have noticed that the pricing information seems to have been scrubbed from Apple's websites. Looking at my existing containers, it appears the public storage limits fall and rise based on active users. In the CloudKit dashboard, head over to Telemetry, Usage to see for yourself.
Sep ’22
Reply to CloudKit sharing how to find out the user who shared the CKRecord
check the creatorUserRecordID field of the CKRecord https://developer.apple.com/documentation/cloudkit/ckrecord/1462208-creatoruserrecordid
Replies
Boosts
Views
Activity
Jan ’23
Reply to CoreData: Operation could not be completed 'Foundation_GenericObjError error 0'
not sure of this, but what thread does Auth.auth().addStateDidChangeListener {} call into? Inside that, you're using the viewContext, which must used be on the main thread.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Core Data crashes while attempting to read external data
I suggest turning on all the debugging capabilities of Core Data, this article does a great job summarizing them https://useyourloaf.com/blog/debugging-core-data/
Replies
Boosts
Views
Activity
Jan ’23
Reply to CKError 429 from CloudKit, using CKDiscoverAllUserIdentitiesOperation
if there is a question here, the answer is to do what it says "Retry after X seconds". The actual time is included in the info dictionary of the error. Here's a snippet from CloudCore, an open-source sync engine, that shows how it retrieves this info… private func handle(error: Error, …) { guard let cloudError = error as? CKError else { … return } switch cloudError.code { case .requestRateLimited, .zoneBusy, .serviceUnavailable: if let number = cloudError.userInfo[CKErrorRetryAfterKey] as? NSNumber { let pauseUntil = Date(timeIntervalSinceNow: number.doubleValue) } … } }
Replies
Boosts
Views
Activity
Dec ’22
Reply to Does the user accepting a CKShare trigger a notification for a CKDatabaseSubscription?
In my experience, no. You should manually trigger your sync logic.
Replies
Boosts
Views
Activity
Dec ’22
Reply to How do I restrict a share to only be shared by specific users in iOS 16?
can you reproduce in iOS 16.2? If yes, file a bug in FeedBack Assistant
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to How do I set UICloudSharingController.availablePermissions to not allow participants other than the owner of CKShare to copy or send a link from UICloudSharingController?
fwiw having the share link in and of itself doesn't give any access to the root record or zone being shared.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to CloudKit, CoreData, and Encryption
Yes, checking that box encrypts the data on CloudKit. You can learn more about it here https://developers.apple.com/videos/play/wwdc2021-10015/?time=1285 BUT, you might consider storing passwords in the Keychain instead.
Replies
Boosts
Views
Activity
Dec ’22
Reply to ARKit Camera Feed to Black & White
explore CoreImage https://developer.apple.com/documentation/coreimage
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Crash inside SceneKit [SCNPhysicsField _removeOwner]
sounds like a race condition
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to UICloudSharingController sharing via Messages broken in iOS16
please file a bug report in the Feedback Assistant app.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Displaying Core Data entity in Table (iOS 16)
FetchRequeset has its own sort descriptors. Better to let it resort itself. Also, is Table optimized for lots and lots of items?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Video instead of live camera view in ARKit
AFAIK, No. ARBodyTracking uses the lidar sensor to detect 3D body position. You can use Vision to detect 2D body pose information on a video, if that helps.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Current CloudKit pricing?
I, too, have noticed that the pricing information seems to have been scrubbed from Apple's websites. Looking at my existing containers, it appears the public storage limits fall and rise based on active users. In the CloudKit dashboard, head over to Telemetry, Usage to see for yourself.
Replies
Boosts
Views
Activity
Sep ’22
Reply to Remove node from ARSCNView cause random crash(btCollisionWorld::updateSingleAabb)
imo "occasional crash" almost always means "race condition". Look at refactoring your code to add and remove objects in the - (void)renderer:(id )renderer updateAtTime:(NSTimeInterval)time callback?
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Sep ’22