I'm automating UI testing using swift in xcode and I need the hardware keyboard to always be disabled for my tests. Is there a way to make sure the hardware keyboard is disabled without human intervention, i.e. a command line script? These UI tests will be run on a build server, so manually launching a simulator and turning off the hardware keyboard is undesirable.
I've looked at xcrun simctl options to interact with the simulator, but I haven't been able to figure out how to do what I want to do. Also, I found a few SO posts indicating that what I'm trying to do is not possible, but I wasn't sure if the posts were asking exactly what I was asking.
Can I set hardware keyboard to off for iOS simulators through a shell script?