Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a storyboard named 'Main' in bundle NSBundle

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?

like image 554
user3863704 Avatar asked Sep 09 '14 08:09

user3863704


People also ask

Could not find a storyboard name Main?

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.

Can t find Main storyboard Xcode?

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.

Could not find in Main bundle?

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.

How do I delete main storyboard?

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.


2 Answers

Remove the "Main storyboard file base name" or "UIMainStoryboardFile" Key from your info.plist file.

info.plist

like image 186
Hemant Chittora Avatar answered Oct 08 '22 11:10

Hemant Chittora


if you are using SceneDelegate in iOS13, Try to remove this key.

Main storyboard in UIScene

like image 42
benmore99 Avatar answered Oct 08 '22 10:10

benmore99