[Xcode 15.0 beta 5] [macOS Sonoma beta 4] SwiftData, symbol not found.

Hey everyone,

I'm trying to add SwiftData to my project and I have the following model:

@Model
final class Folder {
    
    @Attribute(.unique) let id: UUID
    var name: String
    
    init(name: String) {
        self.id = UUID()
        self.name = name
    }
}

Since adding this model, I am unable to launch my app. I receive the following error in the console:

Symbol not found: _$s9SwiftData014DefaultBackingB0C3forACyxGxm_tcfC

What would be causing my project to longer build after adding SwiftData?

Answered by medright in 761926022

the SwiftData Framework is not getting installed probably. there's another thread https://developer.apple.com/forums/thread/734970 where several folks have the same issue. on my machine there is no framework being installed even after I uninstall and reinstall Xcode beta.

Accepted Answer

the SwiftData Framework is not getting installed probably. there's another thread https://developer.apple.com/forums/thread/734970 where several folks have the same issue. on my machine there is no framework being installed even after I uninstall and reinstall Xcode beta.

[Xcode 15.0 beta 5] [macOS Sonoma beta 4] SwiftData, symbol not found.
 
 
Q