during the progress of my app I decided to change from using a UIStoryboard to .xib file, and now I get the error:
Could not find a storyboard named 'Main' in bundle NSBundle
How can I fix this problem within the Simulator part of my app?
Your app tried to find a storyboard named 'main', but could not find it in the spedified NSBundle. The bundle may very likely be your app bundle. Thus, your app does not contain main. storybord even though some parts of your code trying to access it.
If you're missing Main. storyboard, it's probably because you forgot to change the User Interface setting to Storyboard when you created the project. If you leave it set to SwiftUI, then Main. storyboard doesn't get created.
If you get the error "Could not find a storyboard named 'Main' in bundle even after changing the "Main storyboard File base name" in the info. plist and "Main Interface" under Deployment in Target. Then you have to change another entry in the info. plist file.
Step 2: Delete the Storyboard Your new project has been created, now navigate to the left side of your interface, select the “Main. storyboard” file in the main folder, left-click and hit delete.
Remove the "Main storyboard file base name"
or "UIMainStoryboardFile"
Key from your info.plist file.
if you are using SceneDelegate in iOS13, Try to remove this key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With