Xcode not compile localized xib files.

Hi.


When building or archiving the binary of the program in Xcode 9.4.1, only the "xib" files of the "base" folder are compiled and/or copied to the final product, the same "xib" files of the location folders are not compiled. in the File ispector tab under Localization and Target Membership all Localizations are selected.


How can I correct this so that all the "xib" files are included in the final product?


Manuel C.

Accepted Reply

The point of base localization is that there is only one set of XIB or storyboard files, which live in the base folder. The per-language changes are provided by separate .strings files which are either maintained sorta manually (if you don't use the xliff workflow), or sorta automatically (if you do).


This is explained here:


https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/InternationalizingYourUserInterface/InternationalizingYourUserInterface.html


If you want separate XIB and storyboard files per language, you have to turn off base localization.

Replies

The point of base localization is that there is only one set of XIB or storyboard files, which live in the base folder. The per-language changes are provided by separate .strings files which are either maintained sorta manually (if you don't use the xliff workflow), or sorta automatically (if you do).


This is explained here:


https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/InternationalizingYourUserInterface/InternationalizingYourUserInterface.html


If you want separate XIB and storyboard files per language, you have to turn off base localization.