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
In Swift, Why Can't I Instantiate a Protocol When It Has an Initialiser
Swift Generic Constraints in Init
Ios8 Swift Uisearchcontroller Hides Navigationbar
Uitableviewautomaticdimension Not Working on iOS 8
Pattern Variable Binding Cannot Appear in an Expression
How to Properly Calculate 1 Second with Deltatime in Swift
How to Make Function That Some Parameters Not Required in When Call It in iOS Swift 3
Insert a Comment Using the Youtube API and Alamofire
Swift Cannot Infer Type from Context
Swiftui: How to Switch to a New Navigation Stack with Navigationviews
Array Extension Called from Other Module
Swift 4.1 Deinitialize and Deallocate(Capacity:) Deprecated
Skshapenode Is Not Responding to Physicsbody
How to Compare Cgpoints in Swift
Check If a Func Exists in Swift
Use of Undeclared Type Autoreleasingunsafepointer Xcode 6 Beta 6
Delay a Repeating Animation in Swiftui with Between Full Autoreverse Repeat Cycles