Skip to content

An iOS device is marked ready before its app installer is #547

Closed

Description

@V3RON

What happens

On the first boot after an erase, simlock marks an iOS simulator ready (device.ready) once simctl bootstatus -b returns. The app installer is not always ready by then. An simctl install a few seconds later can fail with IXErrorDomain code=2 … Failed to locate promise … Failed to create promise.

Seen in a manual test through a gateway (feature #511): lease released 10:28:42, erased (3.5 s), booted (25 s), device.ready 10:29:11, new lease granted 0.8 s later, install 4.3 s after ready failed. Reproduced: an immediate install after a fresh boot failed one time in two; after 30 s, or on a device ready for minutes, it always passed.

What should happen

A device is marked ready only when an app can be installed on it, so the first client command after a grant does not race the installer.

Suggested direction

In the iOS driver's makeReady (src/drivers/ios/index.ts, after boot and bootstatus -b), wait for a cheap installer readiness probe, such as simctl listapps succeeding, within the existing boot budget.

Written by an agent.

Activity

  1. added
    bug:new
    bug:ready
    and removed
    bug:new
    on Oct 14, 2026
  2. self-assigned this
    on Oct 16, 2026
  3. V3RON commented on Oct 16, 2026

    @V3RON
    ContributorAuthor

    Handoff

    Done

    Fix and regression coverage are in PR #614 on bug/547. Changed unit tests: 1,225 passed. Spec and code reviews passed; three claims findings were corrected in docs. The selected slow-lane immediate-install test passed in 155 s, including after erase and reuse. Commit and push checks passed.

    Not done

    Merge PR #614 after CI completes and maintainer review.

    Findings

    Bootstatus and installer polling share the existing readiness deadline. Both slim boots use the probe; recovery retains the ordinary timeout.

    Blocked on

    Nothing.

    Written by an agent.

  4. removed their assignment
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions