我用Google搜索并尝试了很多选项,但没有获得成功
我正在一次处理两个应用程序,所以当我运行一个应用程序时。 mac键盘工作,但当我运行另一个应用程序时它停止工作。
我必须从模拟器键盘键入我尝试Hardware>Keyboard>Connect Hardware Keyboard
但不工作,有时它的工作,我能够从相同的情况下的mac键盘输入。我正在使用xcode 9.2。
我也试过这个问题Not able to type in textfield in iphone simulator using Mac Keyboard?任何帮助将欣赏
如果您删除以下文件并重新启动Xcode,它应该工作。
~/Library/Preferences/com.apple.iphonesimulator.plist
或者你可以尝试这个:
~/Library/Preferences/com.apple.iphonesimulator.plist
CaptureKeyboardInput
的值设置为YES