Could not find iPhone X simulator
运行
react-native run-ios
详情
1
2
3
4
5
6
7
8
9
10 Found Xcode workspace DbysDriver.xcworkspace
Could not find iPhone X simulator
Error: Could not find iPhone X simulator
at resolve (/Users/afacode/dbysDrivers/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
at new Promise (<anonymous>)
at runOnSimulator (/Users/afacode/dbysDrivers/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
at Object.runIOS [as func] (/Users/afacode/dbysDrivers/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
at Promise.resolve.then (/Users/afacode/dbysDrivers/node_modules/react-native/local-cli/cliEntry.js:117:22)
找到
/node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
1
2
3
4
5 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
替换为
if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) {
广告
阿里云活动云服务器低至1核-2G-1M,1年89元,3年229。
2核-4G-3M,2年469元,3年799。
2核-8G-5M,3年899元。
新老客户都有优惠 点击查看详情/购买
腾讯云现在活动
1核 2G 1M 88一年
2核 4G 5M 3年只要998。 点击查看详情/购买