“复制捆绑资源"中缺少故事板 [英] Storyboards are missing in "copy bundle resources"

查看:34
本文介绍了“复制捆绑资源"中缺少故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用基本国际化来国际化我的应用.一旦我使用它,我的故事板在复制捆绑资源"中变成红色(在我使用基础国际化之前它们是正常的):

I'm using base internationalization to internationalize my app. Once I used it, my storyboards became red in "copy bundle resources" (they were normal before I used base internationalization):

我试过 Xcode Copy Bundle Resources 找不到文件基础国际化和多个故事板无法正常工作基础国际化和找不到名为 [...] 的故事板".不幸的是,他们都没有为我工作.

I have tried Xcode Copy Bundle Resources can't find files, Base internationalization and multiple storyboard not working right and Base Internationalization and "Could not find a storyboard named […]". unfortunately, none of them worked for me.

我怎样才能让它正常?

编辑

这个问题在xcode5中仍然存在

this problem still exists in xcode5

推荐答案

确保在选择 MainStoryboard 文件时在文件检查器中勾选了所有可本地化字符串"复选框.

Make sure you have all the "Localizable strings" checkboxes ticked in the file inspector when the MainStoryboard file is selected.

我遇到了一个类似的问题.我将项目的主故事板转换为使用基础国际化.在选择 MainStoryboard 文件时,在文件检查器中,我看到一个名为 Base 的新条目,它使用的是英文本地化.因此,考虑到Base"已经占了英语部分,我取消了文件检查器中的英语Localizable Strings"条目.显然这是我问题的根源.之后,MainStoryboard 文件将在复制捆绑资源"列表中显示为红色.再次检查英文本地化字符串条目解决了问题.

I had a problem that looks similar. I transitioned my project's main storyboard to use base internationalization. When selecting the MainStoryboard file, in the file inspector, I saw a new entry called Base, which was using the English localization. So, thinking that "Base" already accounted for the english part I unchecked the English "Localizable Strings" entry in the file inspector. Apparently that was the origin of my problems. After that, the MainStoryboard file would show up in red in the "Copy bundle resources" list. Checking again the English localizable strings entry fixed the problem.

这篇关于“复制捆绑资源"中缺少故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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