Could Not Find a Storyboard Named 'Maintabcontroller' in Bundle Nsbundle

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

In your info.plist Main file is set in Scene Configuration, So it always find that file and throw an exception. You can set your default ViewController programatically. In your info.plist set Scene Configuration to Default configuration and Select none into Targets > General > Deployment Info > Main Interface.

Your sceneWillConnectTo be like

  window = UIWindow(frame: UIScreen.main.bounds)
window!.windowScene = windowScene
window!.rootViewController = //your homeVC
window!.makeKeyAndVisible()

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

What is the name of your storyboard? Is it MainTabController.storyboard or Main.storyboard?

You are trying to load a storyboard named "MainTabController":

let mainstoryboard = UIStoryboard(name: "MainTabController", bundle: nil)

But previously you called it Main.storyboard:

Fiddle with the Target Membership Main.storyboard.

Also if the main tab controller is in the same storyboard as your login view controller then you can try to use this:

let mainTabController = self.storyboard.instantiateViewController(withIdentifier: "MainTabController")

Could not find a storyboard named 'Storyboard.storyboard' in bundle NSBundle

From the comment section:

Can you click on your projects -> TARGETS -> iPhone/iPod deployment info, and check to see your storyboard is listed there? Also, Click on your storyboard file -> Show the file inspector -> target membership, make sure there is a check mark on the project.



Related Topics



Leave a reply



Submit