Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 486
brainray Avatar asked Oct 24 '11 08:10

brainray


People also ask

How to change language of iOS Simulator?

On the simulator, open the Settings app. Navigate to General > Language & Region > iPhone Language to select a new language. Choose either Spanish or Polish and tap Done. Accept the language change and wait while the simulator reboots.

How do I change the region in iOS simulator?

in iOS Simulator menu, go to Debug -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly.


2 Answers

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

like image 196
denbec Avatar answered Sep 18 '22 15:09

denbec


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.

like image 23
Daniel Avatar answered Sep 19 '22 15:09

Daniel