axlroseart / drx

0 stars 0 forks source link

React-Native - 知识收集整理 #5

Open axlroseart opened 5 years ago

axlroseart commented 5 years ago

执行 -> react-native run-ios 启动报错:

  1. could not find iphone 6 simulator 解决方案: 找到项目文件夹下的node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js 替换文件中的: if (version.indexOf('iOS') !== 0) 为: if (version.indexOf('com.apple.CoreSimulator.SimRuntime.iOS') !== 0) 即可