iOS模拟器-以编程方式禁用连接硬件键盘 [英] iOS simulator - disable connect hardware keyboard programmatically

查看:111
本文介绍了iOS模拟器-以编程方式禁用连接硬件键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写依赖于显示软件键盘的UITests.由于CI每次都在干净的新模拟器上启动测试,因此模拟器已连接了硬件键盘,因此没有提供软件.

I'm writing UITests that rely on showing the software keyboard. Since the CI launches the tests every time on clean new simulator, the simulator has hardware keyboard connected, hence the software one is not being presented.

是否可以设置某些设置(也许在模式中?)以通过模拟器强制禁用连接硬件键盘.

Is it possible to set some settings (maybe in schema?) to force-disable connecting hardware keyboard by the simulator.

我正在使用黄瓜/苹果进行测试.

I am running tests using cucumber/appium.

推荐答案

有人解决了如何支持Xcode 10的问题吗?使用defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool false不起作用.

Has anyone figured out how to do this supporting Xcode 10? Using defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool false doesn't work.

这篇关于iOS模拟器-以编程方式禁用连接硬件键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆