February 10, 2017 · Ralf Ebert » iOS Developer Blog »

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
Btn read 3c0e607615 iOS Developer Blog
Btn subscribe 930758687e Subscribe: Email · Twitter
Btn training bbbdf557d2 Next iOS training: 25. Februar - 01. März 2019, Stuttgart
Btn about 5378472193 About me · Contact