react-native run-ios can not find any simulator

后端 未结 8 703
滥情空心
滥情空心 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:09

    Try this script from Terminal

    sed -i '' 's/startsWith/includes/g' node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js

    Now run

    react-native run-ios
    

提交回复
热议问题