美文网首页ReactNative
error Failed to build iOS projec

error Failed to build iOS projec

作者: survivorsfyh | 来源:发表于2020-03-19 11:10 被阅读0次

    一波一波又一波啊,最近一路掉进去爬出来反反复复,嗯。。。又掉进来了,速战速决记录下继续前行。。

    macOS 环境下运行 iOS 模拟器进行调试时抛出的如下异常:

    异常信息

    error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening skill_assessment.xcworkspace. Run CLI with --verbose flag for more details.
    

    解决办法

    首先,清除当前项目中所加载关联的依赖包并清除 yarn 的缓存

    rm -rf node_modules && yarn cache clean
    

    其次,重新安装依赖包

    yarn install
    

    再其次,清除 ReactNative 的缓存

    rm -rf ~/.rncache
    

    最后,重新尝试启动程序模拟器即可

    react-native run-ios
    

    以上便是此次分享的全部内容,希望能对大家有所帮助!

    相关文章

      网友评论

        本文标题:error Failed to build iOS projec

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