Post

Replies

Boosts

Views

Activity

Custom Classes on external Swift Package fail to decode
Hi, I'm having a hard time making Core Data recognize my Custom Class from a swift package. The swift package is contained in the same project. I've set the Module field under Custom Class to the name of my Package Module But when I try to encode/decode I get this message cannot decode object of class (MyApp.AccountHolder) for key (root) because no class named "MyApp.AccountHolder" was found It should be CoreModels.AccountHolder. I tried classes I tried different Codegen options. I even tried writing the ManagedObject class manually and moving it to the SwiftPackage and I still get the same message. Is there any other place I should be editing to stop Core Data from looking at my app bundle and use my package bundle?
0
0
495
Apr ’23
Build iOS 18 with Swift 5.10
I noticed that running my app in Xcode 16 crashes often. It seems this is due to the strictness Swift 6 adds at runtime. Even after making sure the Swift Language Mode is 5 for the main target and all modules. I'm migrating to Swift 6 but I probably won't be done before iOS 18 drops so my question is. Can I still ship the app supporting iOS 18 using Xcode 15.4 and Swift 5.10?
2
1
503
Aug ’24