打開項目文件夾下 'node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js'
查找node
if (!version.startsWith('iOS') && !version.startsWith('tvOS'))
修改成react
if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS'))
查找git
simulator.isAvailable !== 'YES'
修改成github
if (simulator.isAvailable !== true)
原方法地址 https://github.com/facebook/react-native/issues/21498#issuecomment-476621627react-native