0

Within my storyboard I don't have any VC with the Is Initial View Controller checked as I am instantiating and setting the window.rootViewController programmatically within the app delegate.

My app is working perfectly however I want to remove the "Failed to instantiate the default view controller" message.

I found question regarding this on SO and the accepted answer stated that the warning will go away if the Main Storyboard File Base Name is removed from the info.plist (Programmatically set the initial view controller using Storyboards).

However my app does not have the Main Storyboard File Base Name entry in the info.plist, so is there something else I can do to remove this warning?

Community
  • 1
  • 1
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378

2 Answers2

0

This is a similar question. Here the answers worked perfectly for me. Please check it out. iOS 7 - Failing to instantiate default view controller

Community
  • 1
  • 1
Nishant
  • 12,529
  • 9
  • 59
  • 94
-1

Select a random VC in your storyboard as the initial VC. This will cause the warning to go away and the option will be overridden by your code inn AppDelegate. This is the approach I use to remove the warning. Maybe more of a workaround, but it is simple and works great :-)

Jorn
  • 1,054
  • 9
  • 25
  • So there are no allocation type issues with this? Would overwriting the window.rootViewController programmatically cause the retain count of the random VC to decrement? – Gruntcakes Feb 17 '14 at 20:56