Reputation: 59
I have recently had an app rejected by Apple and when i attempted to make changes, my Main.storyboard was missing. I managed to delete the current reference and add an older version. After some tweaking, I restored the storyboard. (ALWAYS HAVE BACKUPS, KIDS)
I tried to run the new version, XCode could not find the first ViewController.
2014-09-13 22:18:42.453 Pong![1313:60b] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set? Terminating in response to SpringBoard's termination.
I have checked the box "Is initial ViewController" but to no avail.
Upvotes: 0
Views: 2363
Reputation: 2505
I too have faced the same problem while working in UINavigationController
and segue
.
The reason for this error is, the X-code
complier can't able to find the initial starting view controller.
Solution:
There is no need to create new storyboard. Just select the view controller in your current story board which you wanna to make as initial one.Then click Attribute inspector icon on top right corner and make a tick of Is initial view controller
.
Now Rebuild and Run app.
Upvotes: 1
Reputation: 59
I had to create a new Storyboard file then copy it, then change the Main Interface option to the new one. The old "Main" was deleted.
Upvotes: 0