It was very annoying issue. XCode doesn't copy Localizable.strings files into app bundle. First time i used workaround: delete Localizable.strings with languages and add to project again, but when i made build for distribution i found out that Localizable.strings files are not copied in app bundle! I tried all possible and impossible combinations: remove from "Copy bundle resources" (Target\Build phases), manually add Localizable.strings into "Copy bundle resources", different "Localization native development region" strings, different place in project hierarchy, different encodings (should be UTF-16), XCode 4.2 beta, XCode 4.0 and other. It was unsuccessful. I have: correct Localizable.strings, correct instruction to copy files in "Copy bundle resources", no warnings in project. I don't have: Localizable.strings files in app bundle.
After 2 days i found solution! It was very simple:
1. goto Target\Build phases
2. click "Add build phase" button and select "Copy files"
3. select "Resources" in "Copy files" phase
4. add Localizable.strings
5. make build for distribution (Project\Archive).
5. check app folder for all Localizable.strings files - PROFIT!
:-)
Oh god! Thx!
ReplyDeleteHi! If you are working on localizing your strings files, my suggestion is to use a collaborative translation management platform like POEditor that can speed up the workflow.
ReplyDelete