run_project_until_terminated
Run an Xcode app and wait for it to terminate naturally, extracting runtime logs. Supports optional regex filtering and timeout to force-stop if needed.
Instructions
Run the app and wait for it to terminate naturally (up to timeout seconds).
The app will run in Xcode/Simulator. If it doesn't terminate within timeout
seconds (default 600, i.e. 10 minutes), it will be force-stopped and runtime
logs will be extracted.
No user interaction required - fully automated.
Perfect for: Automated tests, CLI tools, apps with defined exit points
Args: project_path: Path to an Xcode project/workspace directory scheme: Optional scheme to run. If not provided, uses the active scheme. regex_filter: Optional regex pattern to find matching lines in the output max_lines: Maximum number of matching lines to return (default 20) timeout: Maximum seconds to wait for the app to terminate before force-stopping it. If not provided, defaults to 600. Must be a positive integer.
Returns: JSON string with structured console output
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scheme | No | ||
| regex_filter | No | ||
| max_lines | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |