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.
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.
in iOS Simulator menu, go to Debug -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly.
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:
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".
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With