2013-11-21 37 views
1

我刚刚在Xcode 5中创建了一个新的iPhone应用程序项目,并将iOS Deployment Target设置为5.0。我试着运行了iOS 5.1模拟器的应用程序,但我得到了以下错误:找不到xcode5中的故事板for iOS 5

Could not find a storyboard named ‘Main’ in bundle NSBundle 
+0

检查中的.plist故事板的名称显示所选行,并相应地,如果改变你正在实例化故事板。 – suhit

+0

@suit与SB名称相同。仍然我有错误 – codercat

+0

此链接可能会帮助您http://stackoverflow.com/questions/8694742/could-not-find-a-storyboard-named-mainstoryboard-in-bundle-nsbundle – suhit

回答

4

选择Main.storyboard并在File Inspector中对本地化部分进行以下更改。

enter image description here

0

你选用什么样的项目(空的,单一视图)? 您可以在项目资源中看到Main.storyboard文件吗? 确保在您的目标(“常规”选项卡)下的“部署信息”部分中,您已在主界面字段中选择了“主”。

0

试试这个 打开你的项目的info.plist,并删除截图

enter image description here

+0

之后,我得到了同样的错误。使用我的答案,它会帮助你并修复错误 – codercat