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 About Adding a visionOS Platform and Uploading a visionOS Binary
I just added the visionOS platform to one of my apps and got a message about not being able to mess with metadata or upload a binary at this time. Okay, I think I got my answer by clicking the little checkbox.
Replies
Boosts
Views
Activity
Nov ’23
Reply to Is this a bug or a feature?
You didn't save your model with insert. You only inserted the data into the context. You need to either save the context or wait for an auto save.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftData on visionOS?
You problem know this, but SwiftData works fine now on visionOS.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to The framework in visionOS
You might need to import VisionKit.
Replies
Boosts
Views
Activity
Nov ’23
Reply to Should I Remove Mac Catalyst Destination and Add Mac (Designed for iPad) Destination? - Opinions Welcomed
I've decided to keep the Mac Catalyst destination as I can resize the view, whereas with the Designed for iPad destination, I cannot.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftData crashed when I insert (XCode 15.0)
In Page, try this @Relationship(deleteRule: .cascade, inverse: \Line.page) var pages: [Page] In Line, simply try the following var page: Page No need for @Relationship here as SwiftData infers this.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftData ModelContext AutoSave takes about 30 seconds to save the inserted data
You can force a save, modelContext.save(), instead of waiting for the auto save.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’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 UITableViewAlertForCellForRowAtIndexPathAccessDuringUpdate when selected cells are reused.
I am seeing this message while using the visionOS simulator, but not while using the iPhone simulator doing the same steps.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to vision OS development - does voice search work without extra effort
I’m simply talking about using voice instead of text input in a search bar.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Delay in app review status
It used to take a week or more to get a review. I've experienced my apps be in review for. a few days. My suggestion is to be patient.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15 beta - Only one native Mac app can be added to the App Store
In my case, when I submitted my app recently, nothing bad happened when I submitted my MacCatalyst binary to App Store Connect. @SwampDog, you need to submit a separate binary for the MacCatalyst app, I believe.
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 SwiftData and 'Circular references'
@Bruckner I let Xcode generate the models from Core Data models. That is what resulted.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’23