# iOS tests XCUITest suites that drive the editor in a web view on an iOS simulator, for behavior only touch gestures show, such as selecting text with the selection handles. Run them on macOS with Xcode and [xcodegen](https://github.com/yonaskolb/XcodeGen) installed and PHP 8 with SQLite, after building the plugin: ```bash nvm use npm run build ./test/ios/run.sh ``` The script installs WordPress with SQLite, serves it and the checkout with PHP's built-in server, boots a simulator and runs `xcodebuild test`. Screenshots of failures are in `test/ios/build/results.xcresult`. The tests read the software keyboard, so the simulator must show one. A simulator that has ever had a hardware keyboard connected keeps hiding the software keyboard, and the tests then stop with "No software keyboard". Erase that simulator (`xcrun simctl erase `) or pass a fresh one in `SIMULATOR_UDID`.