fix: bootSimulator to use simclt instead of deprecated instruments #1484
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.
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:
yarn run react-native run-ios --simulator='iPhone 11 Pro'yarn run react-native run-ios --simulator='iPhone 11 Pro'The simulator will not boot again
Or
yarn run react-native run-ios --simulator='iPhone 11 Pro'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