10. February 2017

Changing the development language of an Xcode project

In Xcode projects, the Development Language is used as language for the Base localization. Unfortunately there seems to be no way to change this setting directly in Xcode:

Xcode Projekt: Development Language

But the setting can be changed by editing the .pbxproj file directly using a text editor - look out for the developmentRegion property:

Development Region in Xcode pbxproj

You can also use the script xcode_set_development_region.rb to change the language on the command line. For this you need to have cocoapods installed:

sudo gem install cocoapods
curl -O https://www.ralfebert.de/snippets/ios/xcode-change-development-language/xcode_set_development_region.rb
ruby xcode_set_development_region.rb MyXcodeProject.xcodeproj

Don’t forget to change the Localizations native development region property in the Info.plist accordingly:

Info.plist: Localizations native development region
iOS Training Schulung Workshop
Nächste iOS-Schulung:
21. – 25. Oktober 2019
München
iOS Buch
iOS 12-Apps entwickeln mit Swift & Xcode 10