I am trying to preview my SwiftUI views but Xcode Preview Canvas failing.
I tried everything that I found at internet but nothing works.
Finally I created a new iOS project that contains only a view
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
#Preview {
ContentView()
}
Even this view cannot be previewed
The error is
Simulator was shutdown during an update Simulator [3E0DB935-C4C2-4566-BA48-8E21564C207C] failed to boot and may have crashed.
I tried to restart xCode, restart Mac, download ios 26.0 sdk and created a simulator with that sdk but nothing helped.
Do you have an idea?