Duplicate localized resource “/Localizable.strings

2019-07-21 11:16发布

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条回答
仙女界的扛把子
2楼-- · 2019-07-21 11:16

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.

查看更多
登录 后发表回答