104

TL;DR:
It seems localization does not work with xCode 6.1 and 8.1 simulator.
Workaround:
Go to "edit schemes" >> "Run" (side bar) >> "Options" tab >> "Application Language"
Select the language you wish to run the app on the simulator.


Long Story:

I've updated xCode to 6.1. The update deleted the iOS 7.x simulators and left me only with 8.x simulator.
I've done the following steps:

  • I've installed the 7.x simulator
  • Cleaned the project
  • Deleted the app from the simulators
  • Deleted the derived folder for my project

The project supports English and Japanese.
on 7.1 simulator (5s) the localization works as expected.
on 8.1 simulator (5s) it does not work.

I'm guessing Apple broke something with the simulator, because it works on real devices.

Any input on this one, anyone else experienced similar problems?


EDIT
It seems like a bug in the simulator, reference:
Apple Dev Forums

natanavra
  • 2,100
  • 3
  • 18
  • 24
  • 1
    Had the same issue using GM2 which should be the same which is in store now – arnoapp Oct 22 '14 at 09:28
  • 1
    possible duplicate of [iOS8.1 Simulator always uses US keyboard layout despite german hardware keyboard](http://stackoverflow.com/questions/26146668/ios8-1-simulator-always-uses-us-keyboard-layout-despite-german-hardware-keyboard) – Jeremy Huddleston Sequoia Oct 23 '14 at 14:37
  • Please find the working solution at http://stackoverflow.com/a/26690370/2066428 – malex Nov 01 '14 at 14:49
  • Additionally, localization does SOMETIMES neither work on a device: In my case, apps on a device sometimes use the 1st preferred language chosen in the device's settings, and sometimes the base localization. – Reinhard Männer Nov 29 '14 at 17:21
  • 1
    Problem still there even iOS 8.1.1/Xcode 6.1.1 is shipped out. – testing Dec 04 '14 at 08:09
  • The workaround of selecting the application language in the Scheme doesn't work for me... Any advice? – Orion Edwards Dec 19 '14 at 00:23
  • Orion, are you sure you set the language and not the region? There are two options there... And it works for me so far. – natanavra Dec 19 '14 at 10:32
  • 1
    Setting the Language in the build scheme works for me. For good measure I also set the Language in the simulator. – Joe Dec 21 '14 at 17:56
  • Joe, it's basically there so you don't have to change the language in the simulator every time you want to do localization testing. – natanavra Dec 22 '14 at 07:59
  • In my app, I have two files localized for each language: Localizable.strings and Main.storyboard (for storyboard strings). If I set the language in the build scheme, only Localizable.strings strings are translated to the selected language but not storyboard strings. Anyone else experienced this problem? – ljmelgui Jan 02 '15 at 19:18
  • @ljmelgui: I had similar problem like yours, and the cause is my Main.storyboard was totally messed up when I export and import xliff. Hope it helps. – szemian Jan 09 '15 at 23:01
  • Radar ID 18719505 BTW – Epaga Jan 20 '15 at 14:44
  • 1
    Apple fixed the bug with xCode Version 6.2 – Fabio Berger Mar 10 '15 at 14:41

1 Answers1

11

This is mentioned in the Xcode 6.1 Release Notes and in other stack overthrow threads, like:

iOS8.1 Simulator always uses US keyboard layout despite german hardware keyboard

Community
  • 1
  • 1
Jeremy Huddleston Sequoia
  • 22,938
  • 5
  • 78
  • 86