Sometime mac keyboard dosen't work i have to type from simulator keyboard

Multi tool use
Sometime mac keyboard dosen't work i have to type from simulator keyboard
I googled it and try many options but doesn't get success
i am working on two apps at a time so when i run one app. mac keyboard works but when i run another app it stop working.
i have to type from simulator keyboard i tried Hardware>Keyboard>Connect Hardware Keyboard
but doesn't work
and sometimes it work i am able to type from mac keyboard in same case.
i am using xcode 9.2.
I also tried this question Not able to type in textfield in iphone simulator using Mac Keyboard?
any help will appreciate
Hardware>Keyboard>Connect Hardware Keyboard
2 Answers
2
If you delete the following file and restart Xcode it should work.
~/Library/Preferences/com.apple.iphonesimulator.plist
Or you can try this:
https://stackoverflow.com/a/47696048/413877
This worked for me Xcode 9.3:
Simulator app > Quit Simulator
Simulator app > Quit Simulator
Rerun app
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.