Skip to content

Conversation

@rborn
Copy link
Contributor

@rborn rborn commented Oct 15, 2021

Should fix #1474 and facebook/react-native#32255 (comment)

Summary:

With Xcode 13 react-native run-ios --simulator [simulatorName] won't boot a new simulator if Simulator.app is already running but the selected sim is not booted.
This PR should fix this (instrument is deprecated in Xcode 13, we replace it with a simctl command )

Test Plan:

How to reproduce the issue:

  • run yarn run react-native run-ios --simulator='iPhone 11 Pro'
  • close the simulator but DON'T close the Simulator.app (it should be on but no simulator present in the window menu)
  • run again yarn run react-native run-ios --simulator='iPhone 11 Pro'

The simulator will not boot again

Or

  • run yarn run react-native run-ios --simulator='iPhone 11 Pro'
  • leave the simulator open
  • run yarn run react-native run-ios --simulator='iPhone 7'

The new iPhone 7 simulator won't boot.

With this PR

Both cases from above should work fine

@rborn rborn force-pushed the fix/bootSimulator branch from 6b796f6 to 531040a Compare October 18, 2021 07:20
@rborn
Copy link
Contributor Author

rborn commented Oct 18, 2021

@thymikee mmm, not sure why react-native-community.cli test is failing ( it tries to start xcrun on a windows machine? )

@thymikee
Copy link
Member

It fails all the time, don't bother :)

@thymikee thymikee changed the title Fix bootSimulator to use simclt instead of deprecated instruments fix: bootSimulator to use simclt instead of deprecated instruments Oct 18, 2021
@thymikee thymikee merged commit 2dbb1c8 into react-native-community:master Oct 18, 2021
@thymikee
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot Run RN 0.59 CLI's 'run-ios' on xCode 13

2 participants