【问题标题】:React Native Awesome Project Build FailReact Native Awesome 项目构建失败
【发布时间】:2021-12-25 03:12:32
【问题描述】:

一直试图在 VS Code 中运行启动 AwesomeProject 文件,但每次我运行 npx react-native run-ios...都会出现下面的构建失败。浏览了这里的堆栈、cmets 和问题,但我找不到任何适用的内容。

尝试更改我的终端和 Xcode 以使用 Rosetta 加载,但那里也出现错误...

softwareupdate --install-rosetta
Installing Rosetta 2 on this system is not supported.

Not sure where to go from here... 

** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/********/Library/Developer/Xcode/DerivedData/AwesomeProject-ekivgffrflagyugqmoefmykxoyqy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-337605CB7CDF90939BEBF863ED22C375.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)

info Run CLI with --verbose flag for more details.

【问题讨论】:

    标签: node.js reactjs react-native visual-studio-code


    【解决方案1】:

    我也有这个错误,我搜索了几个小时...... 帮助我的是将 react native 的版本从 0.64 降级为 "react-native": "0.62.3"

    它也适用于 0.63。

    其他人觉得这很有帮助:https://github.com/facebook/react-native/issues/32157

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-07
      • 1970-01-01
      • 1970-01-01
      • 2018-09-18
      • 2021-11-25
      相关资源
      最近更新 更多