Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the desi

来源:互联网 发布:淘宝活动招商入口在哪 编辑:程序博客网 时间:2024/05/22 17:27

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


IOS 工程编译的时候上述错误的解决办法:

1.在Main.storyboard 的viewcontroller中选中一个并设置“Is Initial View Controller”为选中状态,如图:



2.如果编译还有错误,那就尝试修改程序的EntryPoint,由Main.StoryBoard 修改为LaunchScreen.xib。如下图:




0 0
原创粉丝点击