Post

Replies

Boosts

Views

Activity

Reply to Swift Concurrency, Core Data, "partially thread-safe" types & Sendable conformance
You're fighting an unwindable battle here. If you're just learning Core Data, you should avoid trying to marry it to Swift concurrency. Core Data has its own, very specific, means of handling background thread implementations, in that, all managed objects should only be retrieved, changed, and saved within a managed object context perform { } block.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’22
Reply to How to read/write to App1’s database from App2?
use NSPersistentCloudKitContainerOptions to configure the container identifier to sync with class PersistenceApp1: ObservableObject { static let shared = PersistenceApp1() let container: NSPersistentCloudKitContainer init(…) { container = NSPersistentCloudKitContainer(name: “App1”) let store = NSPersistentStoreDescription() store.cloudKitContainerOptions = NSPersistentCloudKitContainerOptions(containerIdentifier: "iCloud.com.example.App1") container = [store] container.loadPersistentStores… } … } Also, make sure to add both container identifiers to your app's Signing & Capabilities > iCloud > Containers list
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Coredata and swift: relation between objects disappears
I recommend turning on full Core Data debugging, see if it highlights any issues. https://useyourloaf.com/blog/debugging-core-data/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Did ARKit use IO(Inertial Odometry) to get the data of the device’s position and motion?
None of the existing ARConfiguration classes do this, which suggests that vision tracking is foundational to accurate position and motion tracking. and for completeness, I'll point you to Core Motion https://developer.apple.com/documentation/coremotion
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Searching a Data Model
research @FetchRequest
Replies
Boosts
Views
Activity
May ’22
Reply to When I add or remove records to a share's hierarchy using CKModifyRecordsOperation, do I need to include the share in the recordsToSave argument?
No.
Replies
Boosts
Views
Activity
Jun ’22
Reply to Custom clipping planes in SceneKit
https://developer.apple.com/documentation/scenekit/scncamera/1436592-znear
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Node becomes invisible when moving the camera
check your clipping planes? https://developer.apple.com/documentation/scenekit/scncamera/1436592-znear
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Does removing an attribute in Core Data model require model versioning?
technically, if you add or remove attributes from a model, the version (hash) will be different from before. The good news is, lightweight migrations can often handle simple additions and removals of attributes. as always, test to verify
Replies
Boosts
Views
Activity
Jun ’22
Reply to CloudKit sync works when testing on devices in Xcode but not in production/App Store
In the CloudKit Dashboard, did you push your schema changes from Development to Production?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Show Core Data fetch results in WidgetKit
"In my searching I've seen one suggestion is to create an App Group and share the Core Data stack in there". Do that.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Cloudkit request permission not working
This call presents UI only once per user, per instance of the CloudKit container. To continue to test the experience of the user interface in your dev environment, reset the schema in the CloudKit dashboard.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Swift Concurrency, Core Data, "partially thread-safe" types & Sendable conformance
You're fighting an unwindable battle here. If you're just learning Core Data, you should avoid trying to marry it to Swift concurrency. Core Data has its own, very specific, means of handling background thread implementations, in that, all managed objects should only be retrieved, changed, and saved within a managed object context perform { } block.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Updating Production Records In Public CloudKit Database From Console
Yes, you can…
Replies
Boosts
Views
Activity
Aug ’22
Reply to CloudKit deploy shows unchanged fields with `unknownType`
fwiw, I also saw this two days ago. It's not often I change my CloudKit schema, so unsure how long this has been an issue. To resolve it to my own satisfaction, I manually restored the various indices in dev, such that the only change being pushed to production was the actual new fields, and it worked.
Replies
Boosts
Views
Activity
Sep ’22
Reply to How to read/write to App1’s database from App2?
use NSPersistentCloudKitContainerOptions to configure the container identifier to sync with class PersistenceApp1: ObservableObject { static let shared = PersistenceApp1() let container: NSPersistentCloudKitContainer init(…) { container = NSPersistentCloudKitContainer(name: “App1”) let store = NSPersistentStoreDescription() store.cloudKitContainerOptions = NSPersistentCloudKitContainerOptions(containerIdentifier: "iCloud.com.example.App1") container = [store] container.loadPersistentStores… } … } Also, make sure to add both container identifiers to your app's Signing & Capabilities > iCloud > Containers list
Topic: UI Frameworks SubTopic: SwiftUI Tags:
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