brainray
brainray

Reputation: 12884

How to permanently set the iOS Simulator to a different language than english

I'm developing an app that mainly uses the German language. Because of that, I would like to have the iOS Simulator to be set to German language by default. If I start the iOS Simulator having the language of MacOS set to German, the Menu language of the Simulator is German, but the language 'inside' the simulated iOS is English. I know, that I can change the language within the simulated iOS. But thats not what I'm looking for, because after a reset of the simulator I have to set the language again, and also changing the simulated language seems to be very buggy in iOS 4.2 (frequently leading to hard crashes of MacOS).

Is there a way (maybe via the command line) to permanently change the default language of the simulator?

Many thanks in advance.

Upvotes: 22

Views: 13640

Answers (2)

denbec
denbec

Reputation: 1321

As seen in the iOS7 TechTalks Video "Hidden iOS Developer Gems", you can set two properties in the build scheme so that the simulator changes to your selected language and region:

Build Schemes in Xcode 5

That way you can also easily add multiple run schemes if you need to test different languages each time and quickly switch them before running.


Edit: As of Xcode 6, you can edit this information directly through the run schemes options. Just select "Application Language" and/or "Application Region".

Xcode 6 Simulator Language and Region

Upvotes: 46

Daniel Klöck
Daniel Klöck

Reputation: 21137

You could make yourself a script using ios-sim-locale to set simulator options if the locale settings are lost. See ios-sim-locale. This way you only would need to execute the script before starting the simulator.

Upvotes: 3

Related Questions