简体   繁体   English

无法为 UIMainStoryboardFile 'Main' 实例化默认视图 controller - 也许未设置指定的入口点?

[英]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.

相关问题 未能为 UIMainStoryboardFile 'Main' 实例化默认视图 controller - 也许未设置指定的入口点? - Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set? 无法实例化UIMainStoryboardFile'Main'的默认视图控制器 - Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' 错误:也许指定的入口点没有设置? - ERROR : perhaps the designated entry point is not set? 如何摆脱“可能没有设置指定的入口点”? - How to get rid of "perhaps the designated entry point is not set?" 如何清除“无​​法实例化默认视图控制器”警告? - How to remove “Failed to instantiate the default view controller” warning? 从 .xcodeproj 切换到 .xcworkspace 后无法实例化默认视图控制器 - Failed to instantiate the default view controller after switching from .xcodeproj to .xcworkspace 无法实例化默认视图控制器? - cannot instantiate default view controller? 我还需要设置入口点吗? (初始视图控制器) - Do I still need to set the entry point? (Initial view controller) 无法实例化视图控制器。 - 斯威夫特 - Failed to instantiate view controller. - Swift 无法实例化View Controller - Unable to Instantiate View Controller
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM