美文网首页刘的个人专题
react-native run ios出错,报找不到iPhon

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

作者: 辉546 | 来源:发表于2019-05-10 10:24 被阅读0次

    需要将:
    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;
     }

    相关文章

      网友评论

        本文标题:react-native run ios出错,报找不到iPhon

        本文链接:https://www.haomeiwen.com/subject/maeooqtx.html