Post

Replies

Boosts

Views

Activity

Reply to SwiftData unversioned migration
hello jmilillo, I have encountered the same problem. There is a checkpoint for you what I fix on my app. Did you change the class Item before this version. If you need your data, you need check you modify history and found the version from git, and you need to modify base on that version. The root cause of this error is that the permanently saved data contains data earlier than changing the model. Therefore, this error will occur when transferring data. I hope I can help you.
Aug ’25
Reply to Is Xcode26 support macOS 15.7?
I'm install success on macOS 15.7 after restart the MacBook Pro many times.
Replies
Boosts
Views
Activity
Sep ’25
Reply to SwiftData unversioned migration
hello jmilillo, I have encountered the same problem. There is a checkpoint for you what I fix on my app. Did you change the class Item before this version. If you need your data, you need check you modify history and found the version from git, and you need to modify base on that version. The root cause of this error is that the permanently saved data contains data earlier than changing the model. Therefore, this error will occur when transferring data. I hope I can help you.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Can previews be paused in Xcode 14?
You can stop Auto refresh canvas via this way: Editor -> Canvas -> Automatically Refresh Canvas. Unselect that item will stop refresh preview automatically. But my Xcode is 16. I'm not sure there is it in Xcode 14. I'm not sure whether you have solved this problem. I hope I can help you.
Replies
Boosts
Views
Activity
Dec ’24
Reply to Label cannot export localized string key
There is some compiling errors in my project. I'm export strings success after fixed those errors. If you export localization strings failed too, and set use Compiler to Extract Swift Strings is Yes. You need to check compiling error info in the Report Navigator and fixed those error.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to SwiftData: Failed to decode a composite attribute
You can try this: enum Kind: String, Codable, CaseIterable, Identifiable { case credit = "Credit" var id:String { rawValue } } If that not work. I think you need to use SchemaMigrationPlan and translate model to other version model. There is a example for SchemaMigrationPlan. example. I hope these will be useful to you.
Replies
Boosts
Views
Activity
Nov ’24
Reply to [SwiftData] How to use @Query to get the first 7 elements in the list
This is a repeated question, and it has been answered in the link below. Another question
Replies
Boosts
Views
Activity
Nov ’24