码迷,mamicode.com
首页 > 其他好文 > 详细

Could not find iPhone X simulator

时间:2019-06-24 12:09:30      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:reac   span   cal   img   pre   with   image   core   time   

技术图片

 

Could not find iPhone X simulator

Error: Could not find iPhone X simulator
    at resolve (/Users/zhouenxiao/Desktop/MeiTuan/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
    at new Promise (<anonymous>)
    at runOnSimulator (/Users/zhouenxiao/Desktop/MeiTuan/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
    at Object.runIOS [as func] (/Users/zhouenxiao/Desktop/MeiTuan/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
    at Promise.resolve.then (/Users/zhouenxiao/Desktop/MeiTuan/node_modules/react-native/local-cli/cliEntry.js:117:22)

  

解决方法:进入node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js    

技术图片

if (!version.startsWith(‘com.apple.CoreSimulator.SimRuntime.iOS‘) && !version.startsWith(‘com.apple.CoreSimulator.SimRuntime.tvOS‘)) // 替换(修改)成这条

技术图片

 

Could not find iPhone X simulator

标签:reac   span   cal   img   pre   with   image   core   time   

原文地址:https://www.cnblogs.com/lude1994/p/11076196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!