IOS - failed to start the app

前端 未结 2 525
迷失自我
迷失自我 2020-12-17 08:34

I just tried to run my test app and I got this error:

2012-06-16 09:09:10.737 BusinessPlan[832:f803] Failed to instantiate the default view controller

2条回答
  •  独厮守ぢ
    2020-12-17 09:05

    I've not done an immense amount with storyboards yet, mostly with the older nib/xib based flow. However...

    This looks like: When the app launches it creates an instance of UIApplication. This instance then needs to know what storyboard to go and connect to in order to create the user interface. Looks like that link is missing in your app. In the olden days you would either explicitly tell the app, in code, which nib to load or else you would have the link specified in interface builder. I believe in the world of storyboards it is now more abstract and disconnecting the interface from the app by mistake is not easy to determine and fix. I would recommend first going through the programming guide for storyboards on Apples developer site, or else start looking in the story board file for missing connections to it's delegate.

    This isn't an answer per se, apologies, more of a guide to where to find one.

提交回复
热议问题