Jenkins iOS archive error with Pods FIRCoreDiagnostics.m normal armv7

Jenkins iOS archive error with Pods FIRCoreDiagnostics.m normal armv7

我有一个项目使用 cocoapods (use_frameworks!)Jenkins 作为我的 CI 服务器。

在我的本地环境中一切正常,包括 pod 安装、构建、存档...

但是使用 Jenkins 时总是归档失败

这是错误信息:

Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

Build step '執行 Shell' marked build as failure

Finished: FAILURE

存档时的消息:

我的詹金斯配置:

运行 SCM 运行前的构建步骤

rm -rf ~/Library/Developer/Xcode/DerivedData/*

export LC_ALL=en_US.UTF-8 /usr/local/bin/pod install

运行 脚本

## Archive the project

xcodebuild archive \
-workspace "${WORKSPACE}" \
-scheme "${SCHEME}" \
-configuration "${CONFIGURATION}" \
-sdk "${TARGET_SDK}" \
-archivePath "${ARCHIVEPATH}" \
CODE_SIGN_IDENTITY="${SIGNING_IDENTITY}" \
PROVISIONING_PROFILE="${PROVISIONING_PROFILE_SPECIFIER}"

我已经尝试过但仍然没有用的东西:

设置环境变量

https://github.com/fastlane/fastlane/issues/12164

当运行脚本

时导出UTF-8编码


如果你们需要更多信息,请告诉我... 谢谢

谢谢大家,我自己找到了解决办法。原因是我使用了错误的pods语法。

我参考了这里的解决方案:https://github.com/firebase/firebase-ios-sdk/issues/2100

The issue is using the deprecated version of the Google pod that forces in an extra old version of the GoogleUtilities pod that doesn't have the Environment subspec with the GULAppEnvironmentUtil.h header.

我好像也是这个问题。因此,我将 pods 语法从

更改为
pod 'Firebase/Analytics', '~> 6.13.0' 

pod 'FirebaseAnalytics', '~> 6.1.7'

一切正常。