Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Blog Reader iPhone App Rebuilding from Scratch Starting Over

Mike Lange
Mike Lange
794 Points

Main storyboard won't appear on execution

No one else had this issue?

I've added a new storyboard, and then set the interface and launch screen both to the new "Main.storyboard", then run the app and I still have a black window in the simulator.

I have added the table view controller - so Main.storyboard is not blank.

The log displays the following error - and I have no idea how to define the "entry point":

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

Xcode 6.0.1

1 Answer

Mike Lange
Mike Lange
794 Points

To save anyone else a few minutes of Google searching:

This is fixed by checking the attributes on the new storyboard and ticking "Is Initial view controller".

I had to dig a little further to find this "Is Initial View Controller" check box. When you select the MainStoryboard.storyboard in the navigation area, you must then select the Table View Controller (yellow circle icon at the top). In the utilities area at the right, you should see the View Controller section with the Title and the check box, Is Initial View Controller. Checking that will enable this view controller to load at start. Also notice the arrow now shows to the left of the Table View.