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()
}
}
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: