iOS 7 - 无法实例化默认视图控制器 - iOS 7 - Failing to instantiate default view controller

问题:

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:我在一个新创建的应用程序中使用 Xcode 5,当我刚刚创建它时,我点击运行按钮,然后点击它,然后项目被构建,但它没有显示在 iOS 模拟器中,我收到以下消息:

 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.我当然已经在谷歌上搜索过了,每个人都指出这是因为 XCode 还不知道哪个视图控制器是最初的。 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.但奇怪的是,我将应用程序创建为基于页面的(也尝试过单视图和选项卡式应用程序选项)应用程序,而 XCode 已经为它定义了一个故事板。

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"此外,当我转到项目的主界面选项时,故事板(由 Xcode 本身命名为“Main”)已设置,并且在故事板中,我的视图控制器被设置为“初始视图控制器”

在此处输入图片说明

What is wrong?怎么了?


解决方案:

参考: https://stackoom.com/en/question/1Pakp
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章