I\'m getting a strange error: \'Could not find a storyboard named \'Main\' in bundle NSBundle\'
when trying to run my app on a real iOS device.
I have
Select the view controller you want to first show up in the list on the left side of the storyboard, then in the attribute inspector make sure its title is "Main" and the checkbox for "Is Initial View Controller" is selected.
In a project that uses UIScene
in iOS 13 and Xcode 11, you need to remove the UISceneStoryboardFile
key from the .plist
.
You may check the target membership of the storyboard. May be there is where the problem is:
It should be looking like this:
An update for applications created for iOS 13.0 and above. (Xcode 11)
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.
And your application will start working.
Deleting row in plist caused black screen in my app too. And I fixed it by enabling target membership of the storyboard
If your storyboard is added in project (which you'll determine from Project File Inspector section of xcode utility area)
You just have to remove Main.Storyboard
from "Copy bundle resource" (in Build Phase
) and add it again in "Copy bundle resource". This was worked for me.