Change app language on Apple Watch simulator

I feel a bit dumb now.

I once succeeded to change the language of an app on Watch simulator. So it is possible.

And I'm not able to repeat (fool of me I did not took note of how I did it).

I just remember it was simply through some language settings selection, may be rebooting the Mac, but not by changing anything in code.

Does someone know how to do ?

Answered by DTS Engineer in 827573022

If your intent is to test localizations when running your app on a watchOS simulator with Xcode, you can do so by changing the app language in the schema of your watchOS app taget:

  1. Run Xcode > Product > Schema > Edit Schema... to bring up the schema editor.
  2. Select your watchOS app target in the top bar of the editor, select Run (the second row) on the side bar, find the App Language field on the right, and pick the language you would like to use.
  3. Run your app on the simulator.

If you would change the language of a watchOS simulator:

  1. Launch the Watch app on the paired iOS simulator.
  2. Go to General > Language & Region, select Custom, and then add the langage you would use and make it the first preferred language.

If everything goes well, your watchOS simulator should restart and switch to the language you chose.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

I have selected iPhone simulator and Watch simulator that are paired. To no avail.

PS: in older days, we could select target as iPhone + Watch. That does not seem possible anymore ?

Accepted Answer

If your intent is to test localizations when running your app on a watchOS simulator with Xcode, you can do so by changing the app language in the schema of your watchOS app taget:

  1. Run Xcode > Product > Schema > Edit Schema... to bring up the schema editor.
  2. Select your watchOS app target in the top bar of the editor, select Run (the second row) on the side bar, find the App Language field on the right, and pick the language you would like to use.
  3. Run your app on the simulator.

If you would change the language of a watchOS simulator:

  1. Launch the Watch app on the paired iOS simulator.
  2. Go to General > Language & Region, select Custom, and then add the langage you would use and make it the first preferred language.

If everything goes well, your watchOS simulator should restart and switch to the language you chose.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Thanks a lot. That's so simple, once you know.

Change app language on Apple Watch simulator
 
 
Q