Skip to content

Instantly share code, notes, and snippets.

@dehamzah
Created April 12, 2020 10:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dehamzah/3089899830463b08744546ce75dbd199 to your computer and use it in GitHub Desktop.
react native 0.56.0 cannot find ios simulator in catalina

run this to debug available simulator

xcrun simctl list --json devices

basicly this json output is what react-native run-ios parse to find the matching simulator.


in this file

node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js

in line 31, change to this

if (!version.includes('iOS') && !version.includes('tvOS')) {

in line 37, change to this

if (simulator.isAvailable !== true) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment