有时mac键盘不起作用我必须从模拟器键盘输入

问题描述 投票:0回答:2

我用Google搜索并尝试了很多选项,但没有获得成功 我正在一次处理两个应用程序,所以当我运行一个应用程序时。 mac键盘工作,但当我运行另一个应用程序时它停止工作。 我必须从模拟器键盘键入我尝试Hardware>Keyboard>Connect Hardware Keyboard但不工作,有时它的工作,我能够从相同的情况下的mac键盘输入。我正在使用xcode 9.2。 我也试过这个问题Not able to type in textfield in iphone simulator using Mac Keyboard?任何帮助将欣赏

ios xcode macos keyboard ios-simulator
2个回答
1
投票

这对我有用Xcode 9.3:

  1. Simulator app > Quit Simulator enter image description here
  2. 重新运行应用程序

1
投票

如果您删除以下文件并重新启动Xcode,它应该工作。

~/Library/Preferences/com.apple.iphonesimulator.plist

或者你可以尝试这个:

  1. 打开~/Library/Preferences/com.apple.iphonesimulator.plist
  2. CaptureKeyboardInput的值设置为YES
  3. 重启模拟器。

更多信息:https://stackoverflow.com/a/47696048/413877

© www.soinside.com 2019 - 2024. All rights reserved.