I have a Macbook with an Azerty (French) keyboard.
Whenever I start the iOS simulator, the default keyboard layout is Qwerty (Dutch), so when I am typing using the physical hardware keyboard of my macbook, some keys (A,Z,M,...) do not match.
The setting Hardware > Keyboard > iOS Uses Same Layout as OSX is enabled.
I know how to change the keyboard settings in when going to the Settings app on the simulator, but the setting is forgotten every time the simulator is restarted (which happens very often when switching between different simulators), so this is a real PITA.
Is there a way to fix this?
"iOS Uses Same Layout" is not very accurate as there's no real way to perfectly proxy the layout between the two very different (at this level of the stack) systems. It uses a "best guess" and will tell iOS to switch to the keyboard associated with the language of your host keyboard.
If you toggle between French/Azerty and Dutch/Qwerty, the simulator will tell the hosted runtime "french" and "english". You need to select "Azerty" as your French layout and Qwerty as your Dutch layout from iOS's keyboard preferences (for each device).
Related
When creating a new iOS simulator from Xcode and booting it up, it picks up its language from the macOS's keyboard language.
Creating a simulator with an older runtime, e.g. iOS 13.2, the simulator boots up using system language, as it has done for years.
Is there a way to get the old behavior? Perhaps some plist value somewhere in new Xcode's settings?
I was experiencing the same behaviour, and could not pinpoint it to any reason because my system is setup with everything in English – except the keyboard layout, but that never crossed my mind as it didn't make sense, until I read your question.
Looking into the Simulator menu, I realized that the simulator is binding (by default) the keyboard layout of the host macOS system with the one in the sim, and apparently iOS can't change the keyboard layout without changing the language of the environment. So, tried unchecking the option I/O > Keyboard > Use the same Keyboard Language as macOS and lo and behold, the inconvenient behaviour stopped.
You can switch it back again when you need to input in your other language – that is a need I don't have in the simulator, so I'm leaving it permanently off.
While using the iOS Simulator it is no problem to type an # symbole on the soft-keyboard.
However, when using the real keyboard (if connected using the simulator option Hardware/Keyboard/Connect Hardware Keyboard) pressing Option+L on the hardware keyboard does NOT type an # but ¬ sign...
This is quite annoying when testing login screens and other situations where an # sign is needed. I have to bring up the soft keyboard first.
Is there any trick to use the hardware keyboard to type an # sign in the iOS simulator?
BTW: I have no idea if this happens on real iOS devices with a real hardware keyboard as well, since I have no keyboard I could connect to a real iOS devices.
However this
Sounds like it's your keyboard layout. Option + L renders ¬ on both macOS and iOS for me. If you have an American English keyboard layout you probably want Shift + 2. If you prefer to use the keyboard layout you're accustomed to you might need to configure it in the simulator.
I have the keyboard layout set to "Dvorak", but the simulator seems to assume "Qwerty" regardless. In the menus of "Hardware" > "Keyboard" I have checked off "Use the Same Keyboard Language as macOS" and "Connect Hardware Keyboard". Is there a hidden secret option to actually use the macOS keyboard layout or is this just broken? The wording seems to confound "language" with "layout".
I've seen a similar issue reported as a bug in iOS 8.2 simulator, but the simulator is reporting using iOS 11.2. I'm running Xcode 9.2 and Simulator 10.0 .
EDIT: I updated to the latest macOS (10.14.2) and latest Xcode (10.1) and the issue is still exactly the same. I type in the simulator "aoeu" and I get "asdf".
In order to get Dvorak on the "external" keyboard it has to be manually selected in the settings by going to Settings > General > Keyboard > Hardware Keyboard > "English (United States)" and then selecting "Dvorak". Of course, it just gets reset back to Qwerty after a reset.
Basically the "Use the Same Keyboard Language as macOS" is broken for Dvorak. It may be due to it not being a setting in the software keyboard.
I'm trying to test the layout of an app and I want to change the keyboard settings in the iPad simulator so the keyboard splits. However, I don't see the option to change it anywhere in the keyboard settings.
Is this disabled in the simulator or is there another way to change the keyboard to split? I'm testing on an iPad Pro on iOS 11.3
Apple has decided (for whatever reason) that you can't split the keyboard on iPad Pro (unless you are using the Zoomed display mode). Switch to a smaller iPad simulator to get the split keyboard functionality.
I would like to use my Mac's keyboard to type in text fields in iOS Simulator, but actually, with my settings, when I type the letter A, I got a Q in my text field...
Here is the settings of my keyboard in OS X :
Settings in iOS Simulator :
Hardware :
Keyboards settings in iOS :
Physical keyboards :
Is it possible to use an AZERTY physical keyboard in iOS Simulator ? And how to do that ?
Unfortunately, there is a bug in the current iOS Simulator. You can switch the Keyboard in the Settings, but in Safari & Co, you still get the Englisch QWERTY-Keyboard. This Question has been answered here: iOS8.1 Simulator always uses US keyboard layout despite german hardware keyboard
I'll share it with you as soon as I find a proper solution or Apple fixes this, been watching out for this for a while now...