[Error] Error: 执行命令 react-native run-ios --simulator --no-packager 时出错: 执行命令 react-native run-ios --simulator --no-packager 时出错 (error code 101)
解决办法:
找到文件:
你的rn项目/node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
找到if (!version.startsWith('iOS') && !version.startsWith('tvOS'))
需改为
if(!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS')&&!version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS'))