XCode部署错误:"NSInvalidArgumentException",找不到名为"MainStoryboard"的情节提要 [英] XCode deployment error: 'NSInvalidArgumentException', Could not find a storyboard named 'MainStoryboard'

查看:269
本文介绍了XCode部署错误:"NSInvalidArgumentException",找不到名为"MainStoryboard"的情节提要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像许多以前的"MainStoryboard在NSBundle中丢失"问题一样,我也得到了同样的提示,但是没有发现命名问题,也没有发现故事板是否存在于XCode喜欢的区域中.

Like many of the prior 'MainStoryboard missing in NSBundle' questions, I've got the same prompt but have found no issue with naming and no issue with if the storyboard exists within an area XCode likes.

所有指针都指向同一个文件,我对.plist进行了5次很好的更改,以使其能够响应在Build Stages中发现的相同调用.现在,我已经厌倦了这种废话,因为我只想编程,而不是调试编译器.

All the pointers lead to the same file, I've changed my .plist a good 5 times to make it responsive to the same call as found in Build Stages. Now I'm all kinds of tired of this crap because I just want to program, not debug compiler screw ups.

这是瞬间发生的,现在我已经一天半没有使用有效的界面了.我应该如何进行?

It happened in an instant and now I've been a day and a half without an interface that works. How should I proceed?

推荐答案

我在XCode 4.3.3中遇到以下类似错误:

I got the following similar error in XCode 4.3.3:

由于未捕获的异常而终止应用程序 'NSInvalidArgumentException',原因:'找不到情节提要 名为"MainStoryboard"

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard'

我通过以下操作对其进行了修复:

I fixed it by doing the following:

  1. 确保您的-info.plist具有基于故事板文件的名称 = MainStoryboard
  2. 右键单击Xco​​de中的故事板文件,然后选择删除,然后选择仅参考
  3. 右键单击您的项目,然后选择将文件添加到[您的项目]
  4. 导航到故事板文件(位于项目目录的en.lproj文件夹中)并将其添加
  5. 清理,重新编译并运行,您应该会发现它可行.
  1. Make sure your -info.plist has Main story board file based name = MainStoryboard
  2. Right Click on your Story Board file in Xcode and select Delete then References Only
  3. Right Click on your project and select Add Files to [Your Project]
  4. Navigate to the story board file, found in the en.lproj folder in your projects directory and add it
  5. Clean, Recompile and Run and you should find it works.

从此SO帖子中获得了想法:​​未找到XCode 4.2 MainStoryBoard

Got the idea from this SO post: XCode 4.2 MainStoryBoard Not Found

这篇关于XCode部署错误:"NSInvalidArgumentException",找不到名为"MainStoryboard"的情节提要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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