React Native运行出现Could not find "iPhone X" simulator
程序员文章站
2024-01-28 15:41:04
打开项目文件夹下 'node_modules/react native/local cli/runIOS/findMatchingSimulator.js' 查找 修改为 查找 修改为 原方法地址 https://github.com/facebook/react native/issues/214 ......
打开项目文件夹下 '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'))
查找
simulator.isavailable !== 'yes'
修改为
if (simulator.isavailable !== true)
原方法地址
上一篇: react-绑定this并传参的三种方式
推荐阅读
-
【js】react-native Could not find iPhone 6 simulator 和 Entry, ":CFBundleIdentifier", Does Not Exist 两种报错解决办法
-
react-nativ在找不到模拟器 Could not find iPhone X simulator
-
React Native运行出现Could not find "iPhone X" simulator
-
【js】react-native Could not find iPhone 6 simulator 和 Entry, ":CFBundleIdentifier", Does Not Exist 两种报错解决办法