简体   繁体   中英

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

I google the problem and make sure I check the Is Initial View Controller but nothing show's with the console error:

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

can someone help me please thanks!

To solve, clean your build folder. Go to Product -> Clean Build Folder

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM