【发布时间】: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,你的设置是什么?