刘的个人专题

react-native run ios出错,报找不到iPhon

2019-05-10  本文已影响0人  辉546

需要将:
node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js文件的:
//打开文件以后记得 搜索判断版本的注释,因为实际中,if语句并不一定是这句,但是注释是一样的
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {(不一定是这句判断)
continue;
}
修改成:

// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
 if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) {
   continue;
 }
上一篇下一篇

猜你喜欢

热点阅读