Make local iOS simulator development reliable - #197
Open
cameronapak wants to merge 4 commits into
Open
cameronapak wants to merge 4 commits into
cameronapak wants to merge 4 commits into
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a0b05a-be6e-7792-8c35-a659fd7f4b18 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0b05a-be6e-7792-8c35-a659fd7f4b18 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0b05a-be6e-7792-8c35-a659fd7f4b18 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0b05a-be6e-7792-8c35-a659fd7f4b18 Co-authored-by: Amp <amp@ampcode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Why
Local upgrades and concurrent checkouts could leave agents connected to the wrong Metro server or stale generated state.
Impact
Developers and agents can run
pnpm dev:ios, diagnose withpnpm doctor:ios, and recover withpnpm dev:ios:clean.Verified
The PR appears safe to merge.
Summary
The PR adds a worktree-isolated iOS simulator workflow with launch, clean-recovery, and diagnostic commands.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[pnpm dev:ios] --> B[Discover available iPhones] B --> C[Boot selected simulator] C --> D{Clean mode?} D -- Yes --> E[Regenerate native iOS project] D -- No --> F[Select unused Metro port] E --> F F --> G[Start worktree-isolated Metro] G --> H[Build and install development client] H --> I[Open client with selected Metro URL] J[pnpm doctor:ios] --> K[Check toolchain, app key, simulators, and Metro ports]Reviews (4) · Last reviewed commit: "fix: improve iOS doctor diagnostics"