Post

Replies

Boosts

Views

Activity

Reply to SwiftData JSONDataStore with relationships
Since there wasn't room in the post for the created JSON, here it is: [ { "hack" : { "implementation" : { "entityName" : "Hack", "isTemporary" : true, "primaryKey" : "52747F74-ED6C-40FF-B008-ED3AA1AEF8EB", "uriRepresentation" : "x-swiftdata:\/\/Hack\/52747F74-ED6C-40FF-B008-ED3AA1AEF8EB" } }, "persistentIdentifier" : { "implementation" : { "entityName" : "Settings", "isTemporary" : false, "primaryKey" : "D767DB6F-8D55-4261-85DC-536F6E77D81D", "storeIdentifier" : "Settings.timeoutsettings", "typedPrimaryKey" : "D767DB6F-8D55-4261-85DC-536F6E77D81D", "uriRepresentation" : "x-developer-provided:\/\/Settings.timeoutsettings\/Settings\/D767DB6F-8D55-4261-85DC-536F6E77D81D" } }, "version" : 1 }, { "bar" : 42, "foo" : "Foo", "persistentIdentifier" : { "implementation" : { "entityName" : "Hack", "isTemporary" : false, "primaryKey" : "769933C4-3ADE-4808-914C-C21EA6833F56", "storeIdentifier" : "Settings.timeoutsettings", "typedPrimaryKey" : "769933C4-3ADE-4808-914C-C21EA6833F56", "uriRepresentation" : "x-developer-provided:\/\/Settings.timeoutsettings\/Hack\/769933C4-3ADE-4808-914C-C21EA6833F56" } } } ] And the error: SwiftData/ModelContext.swift:2595: Fatal error: Failed to materialize a model for Settings from snapshot:DefaultSnapshot(_values: ["bar": 42, "foo": "Foo"], persistentIdentifier: SwiftData.PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-developer-provided://Settings.timeoutsettings/Hack/769933C4-3ADE-4808-914C-C21EA6833F56), implementation: SwiftData.PersistentIdentifierImplementation)) For fetch descriptor: FetchDescriptor(predicate: nil, sortBy: [], fetchLimit: nil, fetchOffset: Optional(0), includePendingChanges: true, propertiesToFetch: [], relationshipKeyPathsForPrefetching: [], returnModelsAsFutures: false)
3w
Reply to Xcode 15 beta 6: ld: warning: building for 'macCatalyst', but linking in dylib built
I just got this warning too, in Xcode 15.0 (15A240d) on macOS Sonoma 14.0 (23A344): ld: warning: building for 'macCatalyst', but linking in dylib (/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa.tbd) built for 'macOS' ld: warning: building for 'macCatalyst', but linking in dylib (/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL.tbd) built for 'macOS'
Oct ’23