Can't enter text with XCode 8 beta + iOS 10 simulator

Several of my apps won't accept keyboard entry in the iOS 10 simulator when compiled with XCode 8.


I CAN enter text by popping the visible keyboard and clicking on the letters. But typing using the keyboard doesn't do anything.

Accepted Reply

This is a known issue mentioned in the release notes and impacts some developers the very first time they launch Simulator.app:


See https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW3

The simulator’s hardware keyboard might appear disconnected on first launch.

Workaround: Select the “Connect Hardware Keyboard” menu item from the Hardware > Keyboard menu two times.


Replies

This is a known issue mentioned in the release notes and impacts some developers the very first time they launch Simulator.app:


See https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW3

The simulator’s hardware keyboard might appear disconnected on first launch.

Workaround: Select the “Connect Hardware Keyboard” menu item from the Hardware > Keyboard menu two times.


Perfect, thanks. Emphasize the need to do “Connect Hardware Keyboard” TWICE!

This is a suboptimal solution as it makes the software keyboard disappear as soon as you start typing. I need the keyboard to remain presented to test scroll views that should adjust, etc.

Try hitting "Toggle Software Keyboard" Command K and it should bring the software keyboard back up while letting the harware keyboard still work. At least that was my experience.

I am unable to connect my MacBook keyboard to an iOS 10.3 simulator. I've tried selecting "Connect Hardware Keyboard" many times and it has no effect. Any advice?

You are likely experiencing https://forums.developer.apple.com/thread/70376

Restarting the simulator and "Connect Hardware Keyboard" twice did the trick for me.