Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,10 @@ every one of them and removes nothing.
waits for it, and no new Simlock device is created on the component being
removed: a lease request for it fails with `RUNTIME_MISSING`.

An iOS runtime is removed with `simctl runtime delete`. Two things can stay
An iOS runtime is removed with `simctl runtime delete`. `simctl` can answer
while the runtime is still being deleted, so Simlock waits until it is gone.
If it is not gone about five minutes after the removal started, the command
fails and Simlock keeps its record of the runtime. Two things can stay
behind, and the result's `residue` names each one that did:

- The never-booted simulators of that runtime in Xcode's default device set.
Expand Down
5 changes: 4 additions & 1 deletion src/core/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,10 @@ export interface ComponentRemoval {
readonly residue?: string;
}

/** How long one platform removal (`simctl runtime delete`, `sdkmanager --uninstall`) may run. */
/**
* How long one platform removal (`simctl runtime delete`, `sdkmanager --uninstall`) may run,
* measured from its start. A driver that waits after the tool answers spends the same budget.
*/
export const COMPONENT_REMOVAL_TIMEOUT_MS = 5 * 60_000;

/**
Expand Down
Loading
Loading