I\'m working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I\'m switching the app
For Version 10.0 (SimulatorApp-851.2 CoreSimulator-518.19) with Xcode 9.3, nothing worked for me. I reset the simulator by Hardware -> Erase All Content and Settings -> Erase. Cleaned the project and run on simulator. Keyboard connection is back.
Quit simulator and run following command in terminal:
rm ~/Library/Preferences/com.apple.iphonesimulator.plist
For me doing this worked on iPhone 8+ simulator iOS 11.2: 1. Go to Menu -> Hardware -> Erase all contents and settings. 2. Delete derived data from xcode. Xcode -> Preferences -> Locations -> Click on right arrow on left side of "Advanced" button.
On the Simulator try to change the device. Then run your app again on the original device. That worked for me.
If the first step alone doesn't work uncheck the option: iOS Uses same keyboard layout as OS X and then change the device.
I figured it out doing random stuff until it worked. Monkey fixing.
I just restart the simulator and It worked for me.
I have just installed a new version of Xcode (5.0) and the keyboard in iOS Simulator didn't work on first launch. Just restarting the Simulator helped.