复制本地化资源"/Localizable.strings"找到了xcode 6.1 [英] Duplicate localized resource "/Localizable.strings" found xcode 6.1

查看:89
本文介绍了复制本地化资源"/Localizable.strings"找到了xcode 6.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从.xliff文件向iOS应用程序添加多种语言.首次导入时,所有工作均按计划进行,一切都来了,而且效果很好.但是,第二个告诉我:

I am adding multiple languages to an iOS application from .xliff files. On the first import, all works as planned and everything comes is and works great. On the second, however, it will tell me:

Duplicate localized resource "XXX/Localizable.strings" found

即使文件在finder中的适当位置,它似乎也无法正确对文件进行分组.

It appears that it isn't grouping the files correctly, even though they are in the appropriate locations in finder.

有什么想法吗?

推荐答案

我无法使其正常运行,但以下是我的解决方法: 我将导入语言1,观察文件已添加到项目中,然后在Xcode项目中删除引用(请注意,我没有从磁盘上删除它们).这使得Xcode不知道它们存在于项目中,但是它们仍然存在于finder的项目文件夹中.

I couldn't get it to work properly but here is my work around: I would import language 1, watch the files get added to the project and then remove references in the Xcode project (Note I didn't delete them from the disk). This makes it Xcode doesn't know they exist in the project but they are still there in the project folder in finder.

除了最后一种语言,我对每种语言都执行了此操作.我单击了所创建的localizable.strings文件的最后一种语言,然后单击将文件添加到项目中",并添加回了我之前已删除引用的所有文件.

I did this for every language but the last one. The last language I clicked on the created localizable.strings file and click "Add files to the project" and added back all of the files I had previously removed the references.

我认为这只是某种错误,但这是我解决它们的唯一方法.

I assume this is just some sort of bug but that is the only way I figured around they issue.

这篇关于复制本地化资源"/Localizable.strings"找到了xcode 6.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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