react-native run-ios can not find any simulator

后端 未结 8 702
滥情空心
滥情空心 2020-12-03 08:07

I have been facing an issue where \'react-native run-ios\' can not start, regardless of the simulator I add to the --simulator argument. XCode has the correct location for t

8条回答
  •  感动是毒
    2020-12-03 09:14

    I've found a temporary fix:

    In the following file:

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

    ...change line 42 to:

    if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('tvOS')) {
    

提交回复
热议问题