Post

Replies

Boosts

Views

Activity

Reply to How to Drop Entity in SwiftData and CloudKit?
Wow! Now I understand, thank you very much. This has been very insightful. Building up on the previous example, what could be possible causes why didMigrate is not being called? I wrote a print statement and some code, but it's never run. static let migrateV1toV2 = MigrationStage.custom( fromVersion: SchemaV1.self, toVersion: SchemaV2.self, willMigrate: nil, didMigrate: { context in print("Running Post Migration") // post-migration code here } ) My current workaround was to run the post-migration code outside the MigrationStage.
Jan ’25
Reply to Automatic lightweight migrations in SwiftData VersionedSchema?
I've experimented with it a bit and these are what I found out. There are no automatic lightweight migrations, you have to write every changes to your model in the migration If you do not create a lightweight migrations, your app will crash. CONCLUSION: If you have transitioned to a VersionedSchema, you now have to write every lchanges to your model in the migration or else your app will crash.
Dec ’24
Reply to visionOS app icon not shown in Simulator and on test device
Thanks for posting this! It still has this problem with visionOS 2.4 I thought I was doing something wrong
Replies
Boosts
Views
Activity
Apr ’25
Reply to Sandbox page is empty
Same issue :( but relieved it's not isolated to me.
Replies
Boosts
Views
Activity
Jan ’25
Reply to How to Drop Entity in SwiftData and CloudKit?
Wow! Now I understand, thank you very much. This has been very insightful. Building up on the previous example, what could be possible causes why didMigrate is not being called? I wrote a print statement and some code, but it's never run. static let migrateV1toV2 = MigrationStage.custom( fromVersion: SchemaV1.self, toVersion: SchemaV2.self, willMigrate: nil, didMigrate: { context in print("Running Post Migration") // post-migration code here } ) My current workaround was to run the post-migration code outside the MigrationStage.
Replies
Boosts
Views
Activity
Jan ’25
Reply to SwiftData with CloudKit failing to migrate schema
@jonduenas thanks for this! Fixed the crashing issue. However, I still can't get my didMigrate closure to work. I ended up with the following setup just in case it might help someone Used solution above for handling container Used MigrationStage.lightweight in my migration plan Move manual migration code to a View.task This has worked for me.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Automatic lightweight migrations in SwiftData VersionedSchema?
I've experimented with it a bit and these are what I found out. There are no automatic lightweight migrations, you have to write every changes to your model in the migration If you do not create a lightweight migrations, your app will crash. CONCLUSION: If you have transitioned to a VersionedSchema, you now have to write every lchanges to your model in the migration or else your app will crash.
Replies
Boosts
Views
Activity
Dec ’24
Reply to English is missing from my languages on the App Store
It's now back. It seems filling-out the English Translations fixed it.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Bluetooth connection unexpectedly timing out with macOS Sequoia
Same. Feels like a mouse lag. Mostly encountered it when doing drag and drop, and highlighting a bunch of text.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to English is missing from my languages on the App Store
Thanks. I have now translated English to English instead of just having the grayed-out version of the Keys in the String Catalog. I think this might be it. Will update once it's been released in the App Store.
Replies
Boosts
Views
Activity
Oct ’24
Reply to App Store Connect invalidating binary during App Review - built with Xcode Cloud / Xcode 16 RC
Same here! do we all just wait after 24 hours?
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode Predictive Code Completion can't download
Encountered the same issue. Tried reinstalling and restarting, but none of it works. Hope this could be adressed soon, or at least a workaround would be provided. Already filed a report using Feedback Assistant.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Sample SwiftData project is unable to create bundle
Same issue even without SwiftData, just boilerplate iOS 18 code
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24