Iphone – How to type using the keyboard on the iphone simulator

ios-simulatoriphonexcode

I used to be able to type with my real mac keyboard after launching the iPhone Simulator. Typing with the on-screen simulator keyboard is just horrible when testing with large amounts of text.

No matter what I do, I can't get my keyboard to type anymore inside the simulator. Even if I have "Simulate Hardware Keyboard" switched ON, it just won't type anything. Can someone please tell me what I'm doing wrong? Is there no way to type using the real keyboard anymore?

Best Answer

Try trashing the iPhone Simulator preferences file. When my iPhone Simulator stopped responding to keystrokes, this fixed it.

  1. Quit the simulator.
  2. Go to finder and press (command+shift+G) then navigate ~/Library/Preferences.
  3. Move com.apple.iphonesimulator.plist to the trash.
  4. Try launching your iPhone app in the simulator again.
Related Topic