-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Summary
Add library APIs for managing simulator runtimes, supporting the maui apple runtime commands from the CLI spec.
Commands to Support
| Command | Description |
|---|---|
maui apple runtime list |
List installed and available simulator runtimes |
maui apple runtime install <platform> [version] |
Download and install a simulator runtime |
maui apple runtime delete <identifier> |
Remove a simulator runtime |
Requirements
runtime list
- List installed runtimes via
xcrun simctl runtime list --json(Xcode 16+) orxcrun simctl list runtimes --json - List available (downloadable) runtimes
- For each runtime: platform, version, build, identifier, disk size, source (bundled vs downloaded)
runtime install
- Wraps
xcodebuild -downloadPlatform <platform>orxcrun simctl runtime add <dmg> - Support specifying platform and optional version (default: latest compatible)
- Report download progress for
--jsonstreaming output (type: "progress"messages) - Handle disk space checks
runtime delete
- Wraps
xcrun simctl runtime delete <identifier> - Validate no simulators are using the runtime before deletion (or warn)
Design Notes
- Runtime management APIs changed significantly in Xcode 16 — handle both old and new
simctlAPIs - Downloads can be large (5-10 GB) — progress reporting is essential
- Should support
--dry-runto preview what would be installed/deleted
Reference
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels