gpt4 book ai didi

xcode - clang 前端命令失败,退出代码为 70(使用 -v 查看调用)

转载 作者:行者123 更新时间:2023-12-05 07:07:13 28 4
gpt4 key购买 nike

在为我的 Meteor (cordova) 应用程序生成存档时,XCode 开始出现此错误。我没有对应用程序源代码进行任何更改。

关于类似错误的其他问题,如 this one,通过干净的构建、干净的 npm install 等来回答。对我来说没有任何效果。当执行 git clone 并从另一台计算机上的源构建时,甚至会发生此问题。

完整的错误信息是:

Global variable initializer type does not match global variable type!
%struct.GPBObjcClass_t* @"OBJC_CLASS_$_GPBField"
Global variable initializer type does not match global variable type!
%struct.GPBObjcClass_t* @"OBJC_CLASS_$_GPBOption"
Global variable initializer type does not match global variable type!
%struct.GPBObjcClass_t* @"OBJC_CLASS_$_GPBEnumValue"
fatal error: error in backend: Broken module found, compilation aborted!
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: arm-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/yp/p4gh1z4x3010nqzxbg_52bqw0000gn/T/GPBType-b12118.m
clang: note: diagnostic msg: /var/folders/yp/p4gh1z4x3010nqzxbg_52bqw0000gn/T/GPBType-b12118.cache
clang: note: diagnostic msg: /var/folders/yp/p4gh1z4x3010nqzxbg_52bqw0000gn/T/GPBType-b12118.sh
clang: note: diagnostic msg: Crash backtrace is located in
clang: note: diagnostic msg: /Users/barts/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang: note: diagnostic msg:

最佳答案

最终,我通过将 XCode 从 10.1 更新到 11.3.1(这是在我的 Mojave 上运行的最新版本)解决了这个问题。

这个答案帮助我更新:How to download Xcode DMG or XIP file?

(在 Firefox 上下载不顺利,但 Chrome 下载正常。)

关于xcode - clang 前端命令失败,退出代码为 70(使用 -v 查看调用),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62267761/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com