simulator_install_app
Install a.app bundle or .ipa file onto the simulator from a local path.
Parameters
Absolute or relative path to the
.app bundle directory or .ipa file to install. Example: "./build/Debug-iphonesimulator/MyApp.app".The device UDID, name, or
"booted". Defaults to the currently booted device.Returns
A confirmation message with the path of the installed app.Example prompts
simulator_launch_app
Launch an installed app by its bundle ID. You can optionally pass launch arguments and environment variables for testing specific states or configurations.Parameters
The bundle identifier of the app to launch. Example:
"com.example.MyApp".When
true, force-terminates the app if it is already running before relaunching. Useful for getting a clean launch every time.An array of launch arguments passed to the app process. Your app can read these via
CommandLine.arguments (Swift) or NSProcessInfo.processInfo.arguments (Objective-C).Example: ["--reset-onboarding", "--skip-animations"].A key-value map of environment variables to set for the app process. Each key is automatically prefixed with
SIMCTL_CHILD_ by the simulator. Your app reads them without the prefix.Example: { "API_BASE_URL": "https://staging.example.com", "FEATURE_NEW_UI": "1" }.The device UDID, name, or
"booted". Defaults to the currently booted device.Returns
A confirmation message with the bundle ID and the process ID output fromsimctl launch.
Example prompts
Environment variables are scoped to the launched process and are cleaned up automatically after launch. They do not persist across launches.
simulator_terminate_app
Force-terminate a running app by its bundle ID. Safe to call even if the app is not currently running — the tool treats “not running” as a no-op rather than an error.Parameters
The bundle identifier of the app to terminate. Example:
"com.example.MyApp".The device UDID, name, or
"booted". Defaults to the currently booted device.Returns
A confirmation that the app was terminated.Example prompts
simulator_uninstall_app
Uninstall an app from the simulator by its bundle ID. Removes the app binary and all of its data container.Parameters
The bundle identifier of the app to uninstall. Example:
"com.example.MyApp".The device UDID, name, or
"booted". Defaults to the currently booted device.Returns
A confirmation that the app was uninstalled.Example prompts
App lifecycle workflow
A complete workflow covering install through cleanup:Test the app
Interact with the app, take screenshots, check accessibility snapshots, and inspect logs.
