Post

Replies

Boosts

Views

Activity

Reply to Potential problem with synching users' private CloudKit with NSPersistentCloudKitContainer
Yes. the current design of NSPersistentCloudKitContainer is to sync everything. There are other sync engines available between CoreData and CloudKit, such as CKSyncEngine in iOS 17, and open source sun engines like CloudCore, which might provide more fine-grain control over sync. And of course, you can always write your own that best suits your needs.
Jul ’23
Reply to User Name components
unfortunately, I have written ton of functionality based on the CloudKit DiscoverUser functionality, and it all appears to be deprecated in iOS 17, with no new APIs to replace them. The sample code "Sharing CloudKit Data with Other iCloudUsers" doesn't address this at all.
Jul ’23
Reply to NSPersistentCloudKitContainer CKRecord conversion errors
it sure does look like CloudKit is trying to push a record containing an unidentified field: "Cannot create or modify field 'CD_data_ckAsset' in record 'CD_ImageData' in production schema" While you may think all your image files are < 1Mb, Core Data may still be using external files in some edge cases. You could run your app in dev mode, add a very large image > 1mb, and have it sync, then see if there are schema changes to be pushed from dev to prod?
Jul ’23
Reply to Swift UI + Core Data in a background thread?
As you have discovered, you cannot ignore the threading requirements of CoreData or SwiftUI. If you retrieve objects in a background context/thread, you cannot access them in the main thread (ie SwiftUI). How many FRCs are you instantiating? Can you do updates with one set of FRCs in background contexts, and then use another set in the viewContext? Have you tried setting the batching levels on your FRCs?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Reply to iPhone 12 pro ARKit raw data for VIO
curious why you want to roll your own, rather than use Apple's implementation?
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Cloudkit + Watch - Invalid bundle ID for container
You must specify the bundle ID as the container identifier when instantiating your CKContainer.
Replies
Boosts
Views
Activity
Sep ’23
Reply to Turn physical surface into touchscreen in VisionOS
Yes. surface geometry can be retrieved textures on geometries can be drawn/animated hand position can be retrieved its all possible
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to How to upload default-data to the public CloudKit database
basically, yes, you need to upload the records to the public database once, such that subsequent devices can read them. Whether you do that thru the CloudKit console, or you write code in an app to upload/save is up to you.
Replies
Boosts
Views
Activity
Sep ’23
Reply to Potential problem with synching users' private CloudKit with NSPersistentCloudKitContainer
Yes. the current design of NSPersistentCloudKitContainer is to sync everything. There are other sync engines available between CoreData and CloudKit, such as CKSyncEngine in iOS 17, and open source sun engines like CloudCore, which might provide more fine-grain control over sync. And of course, you can always write your own that best suits your needs.
Replies
Boosts
Views
Activity
Jul ’23
Reply to User Name components
unfortunately, I have written ton of functionality based on the CloudKit DiscoverUser functionality, and it all appears to be deprecated in iOS 17, with no new APIs to replace them. The sample code "Sharing CloudKit Data with Other iCloudUsers" doesn't address this at all.
Replies
Boosts
Views
Activity
Jul ’23
Reply to CoreData Failure During Entity Creation in the ViewContext
the persistentContainer.viewContext can only get and set records in the main thread, but if I'm reading your code correctly, you're dropping into a task (background thread). better to use persistentContainer.performBackgroundTask { backgroundContext in … } and pass the background context to all your functions.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to NSPersistentCloudKitContainer CKRecord conversion errors
it sure does look like CloudKit is trying to push a record containing an unidentified field: "Cannot create or modify field 'CD_data_ckAsset' in record 'CD_ImageData' in production schema" While you may think all your image files are < 1Mb, Core Data may still be using external files in some edge cases. You could run your app in dev mode, add a very large image > 1mb, and have it sync, then see if there are schema changes to be pushed from dev to prod?
Replies
Boosts
Views
Activity
Jul ’23
Reply to CAMetalLayer transparency set invalid on VisionOS
file a bug report!!!
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to iOS 17 BUG IN CLIENT OF CLOUDKIT: Not entitled to listen to push notifications.
file a bug report!
Replies
Boosts
Views
Activity
Jul ’23
Reply to Limits of CloudKit Public Database
public asset storage (along with a variety of other capped resources) varies over time based on the number of active users of your app. You can find your current usage and limits in the CloudKit Dashboard > Telemetry > Usage Here's mine from one of my apps…
Replies
Boosts
Views
Activity
Jun ’23
Reply to Enable Permissions (iCloud)
the system will ask the user for permission only once on your behalf. after that, you can check the status of the account, and if its disabled, display a UI directing the user to Settings to change the permission.
Replies
Boosts
Views
Activity
Jun ’23
Reply to SceneKit / renderNode override/ Metal / Instancing
The short answer is, yes this is very possible. Years ago I ported an open-source particle emitter system into SceneKit and Metal using a SCNNode renderDelegate. Your code snippets above don't show setting the colorAttachments or depthAttachmentPixelFormat on the MTLRenderPipelineDescriptor?
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Swift UI + Core Data in a background thread?
As you have discovered, you cannot ignore the threading requirements of CoreData or SwiftUI. If you retrieve objects in a background context/thread, you cannot access them in the main thread (ie SwiftUI). How many FRCs are you instantiating? Can you do updates with one set of FRCs in background contexts, and then use another set in the viewContext? Have you tried setting the batching levels on your FRCs?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to CloudKit backed SwiftData @Relationship
it should work, and if not, file a bug report
Replies
Boosts
Views
Activity
Jun ’23