Duplicate localized resource “/Localizable.strings” found xcode 6.1

断了今生、忘了曾经 提交于 2019-12-13 16:23:21

问题


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

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

Any ideas?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/27361924/duplicate-localized-resource-localizable-strings-found-xcode-6-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!