The details might be important for this issue. I have a Swift app, I added a new target, a WatchOS app which would obviously be using SwiftUI which wouldn't be using any storyboard I don't think but I get this error message.
I'm not making any changes, I'm literally adding new target and trying to run the base default code that Xcode gives me.
Here's my code (I included the error message I get when I run the watch app as well.
@main //Thread 1: "Could not find a storyboard named 'Main' in bundle NSBundle </Users...
struct Shia_WatchOS_Watch_AppApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
I also went into the Watch app target, selected the Info tab and found "Main storyboard file base name" was set to "Main". Even when I remove this it makes no difference, I still get that error.