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

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

问题描述

我一直在处理一个应用程序很长一段时间从蓝色开始我得到了这个:

I've been working on a application for a long time now and out from the blue i got this:


不能找到一个名为'MainStoryboard'的故事板在
NSBundle

"Could not find a storyboard named 'MainStoryboard' in bundle NSBundle"

我在StackOverflow和我这里重新提出了类似的问题尝试了一切,包括:
- 重命名故事板文件
- 重新添加故事板文件
- 清理项目
- 重置内容并在模拟器上设置

I've red the similar questions here on StackOverflow and i tried everything including: - Renaming the storyboard file - Re-adding the storyboard file - Cleaned the project - Reset contents and setting on the simulator

我还检查了plist文件和Copy Bundle Resources以及故事板名称是应该的。这没有任何作用。

I've also checked the plist file and the Copy Bundle Resources and the storyboard name is as it should be. Nothing of this works.

我正在和朋友一起开发应用程序,我们正在使用Git。奇怪的是,同样的版本对他来说效果很好。

I'm developing the application with a friend and we are using Git. The weird thing is that the same version works just fine for him.

但是,在Copy Bundle Resources中,MainStoryboard.storyboard和InfoPlist.strings为红色。但是他们已经很长时间没有任何麻烦了。而我的朋友(项目工作正常)他们也是红色的。

However, in the Copy Bundle Resources the MainStoryboard.storyboard and InfoPlist.strings are red. But they have been red for a long time without any troubles. And my friend (for which the project works fine) they are also red.

想法?

推荐答案

我建议检查一下这个文件是不是本地化的(带有没有实际的本地化),删除本地化并重新添加文件。

I would suggest to check that this file is not localized (with no actual localization), to remove the localization and to re-add the file.

如果这不起作用,您是否尝试克隆项目的新副本Git?

If this does not work, have you tried to clone a fresh copy of the project from Git?

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

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