Xcode - 升级后模拟器无法响应电脑键盘

Q:

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?

A:

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

Quit the simulator.

Go to ~/Library/Preferences

Drop "com.apple.iphonesimulator.plist" to the trash.

Try launching you iPhone app in the simulator again.

启动模拟器,在需要输入文字的地方,敲击 mac 下的真实键盘,但是模拟器上没有任何输出。google 一下,得到解决办法:

退出模拟机

进入 ~/Library/Preferences

删除 "com.apple.iphonesimulator.plist"

重新启动模拟器

本作品采用《CC 协议》,转载必须注明作者和本文链接
lizhiqiang666
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
技术负责人 @ 某某
文章
91
粉丝
209
喜欢
906
收藏
1031
排名:25
访问:24.1 万
私信
所有博文
社区赞助商