ios-simulator
Automate iOS Simulator workflows (simctl + idb): create/boot/erase devices, install/launch apps, push notifications, privacy grants, screenshots, and accessibility-based UI navigation. Use when working with iOS apps, Xcode, Simulator, simctl, idb, UI automation, or iOS testing.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Automate iOS Simulator workflows (simctl + idb): create/boot/erase devices, install/launch apps, push notifications, privacy grants, screenshots, and accessibility-based UI navigation. Use when working with iOS apps, Xcode, Simulator, simctl, idb, UI automation, or iOS testing.
How to use
Upewnij się, że pracujesz na macOS z zainstalowanymi Xcode Command Line Tools. Skill wymaga polecenia xcrun, które jest dostępne tylko na tym systemie operacyjnym.
Zainstaluj idb-companion (opcjonalnie, ale wymagane do inspekcji drzewa dostępności i interakcji z UI). Użyj Homebrew: brew install --tap facebook/fb idb-companion.
Sprawdź, czy skill działa prawidłowo, uruchamiając health check: node {baseDir}/scripts/ios-sim.mjs health. Polecenie zweryfikuje dostępność wymaganych narzędzi.
Wyświetl listę dostępnych symulatorów: node {baseDir}/scripts/ios-sim.mjs list. Następnie wybierz domyślny symulator i uruchom go: node {baseDir}/scripts/ios-sim.mjs select --name "iPhone" --runtime "iOS" --boot. Skill zapisze konfigurację w pliku .ios-sim-state.json.
Zainstaluj i uruchom aplikację testową: node {baseDir}/scripts/ios-sim.mjs app install --app path/to/MyApp.app, a następnie node {baseDir}/scripts/ios-sim.mjs app launch --bundle-id com.example.MyApp.
Inspektuj interfejs użytkownika za pomocą drzewa dostępności: node {baseDir}/scripts/ios-sim.mjs ui summary. Możesz także klikać elementy (node {baseDir}/scripts/ios-sim.mjs ui tap --query "Log in") lub wpisywać tekst (node {baseDir}/scripts/ios-sim.mjs ui type --text "hello world"). Na koniec wykonaj zrzut ekranu: node {baseDir}/scripts/ios-sim.mjs screenshot --out artifacts/screen.png.