(opts?: { simulatorId?: string })
| 44 | * should be skipped (headless mode — `simctl boot` is sufficient). |
| 45 | */ |
| 46 | export function buildOpenSimulatorAppCommand(opts?: { simulatorId?: string }): string[] | null { |
| 47 | if (isHeadlessLaunchMode()) { |
| 48 | return null; |
| 49 | } |
| 50 | const command = ['open', '-a', 'Simulator']; |
| 51 | if (opts?.simulatorId) { |
| 52 | command.push('--args', '-CurrentDeviceUDID', opts.simulatorId); |
| 53 | } |
| 54 | return command; |
| 55 | } |
no test coverage detected