【问题标题】:clang frontend command failed with exit code 70 (use -v to see invocation)clang 前端命令失败,退出代码为 70(使用 -v 查看调用)
【发布时间】:2020-09-27 18:06:29
【问题描述】:

为我的 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: 

【问题讨论】:

  • 你有解决办法吗?
  • 还没有@DivyanshuJoshi
  • 同样的问题。什么可能导致这种情况?
  • 就我而言,我已将其范围缩小到我使用的推送插件(raix:push / phonegap-plugin-push、cordova-intercom、cordova-plugin-firebase-analytics)。 @iiro,你的设置是什么?

标签: xcode cordova meteor


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 2018-01-21
    • 1970-01-01
    • 2016-02-12
    • 2016-04-15
    • 2013-05-15
    • 2016-02-25
    • 1970-01-01
    相关资源
    最近更新 更多