Skip to content

Avoid spawning a new iOS simulator if one is already booted#55931

Closed
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D95368633
Closed

Avoid spawning a new iOS simulator if one is already booted#55931
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D95368633

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

Previously, testRNTesterIOS would either unconditionally boot a new
simulator (local build path) or check only for an exact "iPhone 16 Pro"
match (CI artifacts path). This caused a new iOS simulator to always
spawn even when one was already open.

Extracted a bootSimulatorIfNeeded helper that checks for any booted
simulator via xcrun simctl list devices booted before attempting to
boot a new one.

Reviewed By: cipolleschi

Differential Revision: D95368633

Summary:
Changelog: [Internal]

Previously, `testRNTesterIOS` would either unconditionally boot a new
simulator (local build path) or check only for an exact "iPhone 16 Pro"
match (CI artifacts path). This caused a new iOS simulator to always
spawn even when one was already open.

Extracted a `bootSimulatorIfNeeded` helper that checks for any booted
simulator via `xcrun simctl list devices booted` before attempting to
boot a new one.

Reviewed By: cipolleschi

Differential Revision: D95368633
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 5, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 5, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95368633.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 5, 2026

This pull request has been merged in 977ad71.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @fabriziocucci in 977ad71

When will my fix make it into a release? | How to file a pick request?

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
…#55931)

Summary:
Pull Request resolved: facebook#55931

Changelog: [Internal]

Previously, `testRNTesterIOS` would either unconditionally boot a new
simulator (local build path) or check only for an exact "iPhone 16 Pro"
match (CI artifacts path). This caused a new iOS simulator to always
spawn even when one was already open.

Extracted a `bootSimulatorIfNeeded` helper that checks for any booted
simulator via `xcrun simctl list devices booted` before attempting to
boot a new one.

Reviewed By: cipolleschi

Differential Revision: D95368633

fbshipit-source-id: 858bd235486597b5c9dbb0b904fcd95707b92b13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants