无法在捆绑NSBundle中找到名为“MainStoryBoard”的故事板 [英] Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle

查看:249
本文介绍了无法在捆绑NSBundle中找到名为“MainStoryBoard”的故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几天前开始使用新的应用程序,并开始使用模拟器进行测试。我开始是一个空项目并手动添加故事板。模拟器构建并运行我的应用程序就好了但是当我尝试构建到我的iPhone时,我得到了消息无法在捆绑NSBundle中找到名为'MainStoryBoard'的故事板'。

I have started a new app a few days ago and began working with the simulator to test it. I started as an empty project and manually added the storyboard. The simulator builds and runs my app just fine but when I try to build to my iPhone I get the messsage 'Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle'.

Google没有发现任何内容并这个问题建议我检查我的目标是否有故事板,但一切都已到位。即便如此,如果某些东西不存在,模拟器也不会运行。

Google turned up nothing and this question suggested I checked my target for the storyboard, but everything is in place. Even so, if something wouldn't be in place, the simulator wouldn't run either.

有人能指出我正确的方向吗?

Can anyone point me in the right direction?

推荐答案

模拟器不区分大小写,但设备是。如果您的故事板被称为MainStoryboard,而不是MainStoryBoard,这将导致您的问题。

The simulator is not case sensitive, but the device is. If your storyboard is called MainStoryboard, not MainStoryBoard, this will cause your problem.

这篇关于无法在捆绑NSBundle中找到名为“MainStoryBoard”的故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆