Skip to content

iOS onboarding can stage a STALE .app after a failed rebuild #79

Description

@BenSheridanEdwards

src/cli.ts (buildIosProjectForOnboarding + discoverBuiltArtifacts): .nativeproof/ios/DerivedData persists across runs, so when a rebuild FAILS, discovery finds the previous run's .app, prints 'xcodebuild exited N, but produced …; continuing with that app', and onboards outdated bits. Also discoverBuiltArtifacts takes newest-mtime anywhere in the tree (device builds/Watch companions can win) and one unreadable directory aborts the walk (unguarded readdirSync). Suggested: record artifact mtimes before the build and only accept artifacts newer than build start; prefer Debug-iphonesimulator paths; try/catch the readdir. Found during adversarial review (2026-07-02).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions