While on macOS beta (23A5257q) I was able to get my app to run on Xcode Version 15.0 beta (15A5160n) but I have now updated to macOS beta (23A5301h) and I get a similar error stating Symbol Not Found while on the same Xcode version (15A5160n). See here:
dyld[9265]: Symbol not found: _$s011_SwiftData_A2UI5QueryV6filter4sort11transactionACyxSayxGG10Foundation9PredicateVyxGSg_SayAI14SortDescriptorVyxGG0aC011TransactionVSgtcAGRs_rlufC
Referenced from: /Users/{redacted}/Library/Developer/Xcode/DerivedData/MarketProbe-cqnacjmztpbzypbbvdreasnhtmbu/Build/Products/Debug/MarketProbe.app/Contents/MacOS/MarketProbe
Expected in: <4A72DA74-BDCA-37CE-9A19-B4AD02FD483D> /System/Library/Frameworks/_SwiftData_SwiftUI.framework/Versions/A/_SwiftData_SwiftUI
Post
Replies
Boosts
Views
Activity
Thanks for the reply, cleaning the derived data folder did not help. I'm providing the code from 2 files that you can just copy and paste to get the error. Let me know if I can provide any other info. Thanks for the help!
File 1:
@Model
class Audit {
init() { }
}
@main
struct MarketProbeApp: App {
let container = try! ModelContainer(for: Audit.self)
var body: some Scene {
WindowGroup {
ContentView()
}
.modelContainer(container)
}
}
File 2:
import SwiftUI
import SwiftData
struct ContentView: View {
var body: some View {
Text("Hello, World")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}