问题
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