VSCode Could not find iPhone X

2019-08-16  本文已影响0人  云顶天宫写代码

找到 /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'))

感谢 原文地址:https://www.jianshu.com/p/a3a351b164ba

上一篇 下一篇

猜你喜欢

热点阅读