Post

Replies

Boosts

Views

Activity

Reply to SwiftData project segfaults when I enabled iCloud sync
Are you using the default iCloud container or did you define one yourself? I don't see your ModelConfiguration init. Something like the folliowing. let modelConfig = ModelConfiguration(schema: schema, cloudKitDatabase: .private("iCloud.com.mycompany.name")) do { container = try ModelContainer(for: schema, configurations: [modelConfig]) } catch { fatalError("Could not create ModelContainer: \(error)") }
Topic: App & System Services SubTopic: iCloud Tags:
Oct ’23
Reply to Profiles
Check out this link to manually generate a provisioning profile. https://developer.apple.com/help/account/manage-profiles/create-a-development-provisioning-profile/ However, many of us find it much easier to let Xcode automatically generate the provisioning profile. See the image below.
Oct ’23
Reply to Xcode 15 beta 6: ld: warning: building for 'macCatalyst', but linking in dylib built
I'm getting the warnings too, but I was able to build with the warnings and I've submitted the binary to App Store Connect. There were also some other gotchas that I had to resolve. The Mac build was linking to my watch app where it never did so before. I had to go into the build settings and click off the Mac dependency.
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftData project segfaults when I enabled iCloud sync
Are you using the default iCloud container or did you define one yourself? I don't see your ModelConfiguration init. Something like the folliowing. let modelConfig = ModelConfiguration(schema: schema, cloudKitDatabase: .private("iCloud.com.mycompany.name")) do { container = try ModelContainer(for: schema, configurations: [modelConfig]) } catch { fatalError("Could not create ModelContainer: \(error)") }
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NavigationSplitView behaves not right with `SwiftData`
I'm no expert, but I would try the following. NavigationSplitView { List(notes) { noteTitle in NavigationLink (noteTitle.name) { NoteEditing(noteModelClass: noteTitle) } .onDelete(perform: deleteNote) } .navigationTitle("Notes") .toolbar { Button ("", systemImage: "plus", action: { presentNewNoteAlert = true }) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Profiles
Check out this link to manually generate a provisioning profile. https://developer.apple.com/help/account/manage-profiles/create-a-development-provisioning-profile/ However, many of us find it much easier to let Xcode automatically generate the provisioning profile. See the image below.
Replies
Boosts
Views
Activity
Oct ’23