我一直试图在VS代码中运行启动AwesomeProject文件,但每次运行npx react-native run-ios
...the build时都会出现下面的失败。我已经看了这里的堆栈,评论和问题,但我找不到任何适用的。
尝试更改我的终端和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.
发布于 2021-11-12 12:17:16
我也有这个错误,我找了几个小时...帮助我的是将react native的版本从0.64降级为"react-native":"0.62.3“
它也适用于0.63。
其他人发现这很有帮助:https://github.com/facebook/react-native/issues/32157
https://stackoverflow.com/questions/69948538
复制