Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

I am using Xcode in a newly created app and when I run the project it does not show in the iOS Simulator and I get the following message:

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

I've Googled about it of course and everybody points out that this is happening because Xcode does not know yet which view controller is the initial one. But the weird thing is that I created the app as a page based (also tried single-view and tabbed app options) app and Xcode already had defined a Storyboard for it.

Also, when I go to the main interface option of the project the storyboard (named "Main" by Xcode itself) is set, and in the Storyboard, my view controller is set as the "Initial View Controller"

Is Initial View Controller

What is wrong?

like image 254
rodrigoalvesvieira Avatar asked Jan 02 '14 03:01

rodrigoalvesvieira


People also ask

How do I change the initial view controller in storyboard?

Specifying the Initial View Controllerstoryboard and select the Tab Bar Controller Scene. On the right, select the Attribute inspector. You'll find a checkbox named Is Initial View Controller. Checking this box will identify the selected view controller as the initial entry point for the storyboard you're on.

Is initial a ViewController?

Every storyboard file has an initial view controller that represents the default view controller to create. Typically, you use the initial view controller as the root view controller for a window. However, you can also instantiate the initial view controller when transitioning to content in a new storyboard file.


1 Answers

Check Is Initial View Controller in the Attributes Inspector.

enter image description here

like image 62
Ashvin A Avatar answered Oct 08 '22 10:10

Ashvin A