iOS 7 - Failing to instantiate default view controller

rodrigoalvesvieira picture rodrigoalvesvieira · Jan 2, 2014 · Viewed 114.8k times · Source

I am using Xcode 5 in a newly created app and when I just create it I go for the run button e click on it, then the project gets built but 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"

enter image description here

What is wrong?

Answer

Ashvin Ajadiya picture Ashvin Ajadiya · Jul 8, 2014

Check Is Initial View Controller in the Attributes Inspector.

enter image description here