[英]Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
I just learn iOS about 2 days, and I cannot solve the problem with initial view controller
刚学iOS 2天左右,用初始视图controller解决不了问题
I google the problem and make sure I check the Is Initial View Controller
but nothing show's with the console error:我用谷歌搜索了这个问题,并确保我检查了
Is Initial View Controller
但没有显示控制台错误:
Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
无法为 UIMainStoryboardFile 'Main' 实例化默认视图 controller - 也许未设置指定的入口点?
can someone help me please thanks!有人可以帮我吗谢谢!
To solve, clean your build folder.要解决此问题,请清理您的构建文件夹。 Go to Product -> Clean Build Folder
Go 到产品 -> 清理构建文件夹
I was in the same situation, and I tried many things, but it didn't work.我也遇到了同样的情况,我尝试了很多东西,但都没有奏效。 So I finally deleted the project and made a new one.
所以我最终删除了这个项目并重新创建了一个。 Then the problem went away.
然后问题就消失了。 I don't know why it happened, but anyway, I can progress my learning.
我不知道为什么会这样,但无论如何,我可以进步我的学习。
All story board need an entry point (where to start and it looks like you did not define it. you need to add an arrow to let the storyboard know which vc is the initial viewcontroller How to add arrow所有故事板都需要一个入口点(从哪里开始,看起来你没有定义它。你需要添加一个箭头让 storyboard 知道哪个 vc 是初始视图控制器如何添加箭头
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.