OGeek|极客世界-中国程序员成长平台

标题: ios - Jenkins 或远程登录上的 FaSTLane 错误 65 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:41
标题: ios - Jenkins 或远程登录上的 FaSTLane 错误 65

我知道这是一个已知问题,并且尝试了几次答案,但这次我发现了我觉得很奇怪的情况。当对第一个 Pod 进行代码签名时,日志会告诉可怕的 Error 65errSecInternalComponent

在构建之前,我在 shell 脚本中包含了 security unlock-keychain 命令。

捆绑更新
导出 FASTLANE_DISABLE_COLORS=1
导出 APP_IDENTIFIER=com.example.MyApp
security unlock-keychain -p topsecret ~/Library/Keychains/codesign.keychain && bundle exec faSTLane appstore

我也尝试过其他的巫术,比如 doing other magic with keychain

当直接在 CI 服务器控制台(或通过远程桌面)上运行时,它可以完美运行,不会提示输入用户密码等。我想知道有什么区别?

FaSTLane 版本是 2.106.0(最新)。

在执行 Embed Pods 框架时,构建与其他用户一样失败:

▸ 运行脚本 '[CP] Embed Pods Frameworks'
** 存档失败 **


以下构建命令失败:
PhaseScriptExecution [CP]\Embed\Pods\Frameworks/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice-gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice_AppStore/IntermediateBuildFilesPath/BackOffice.build/Release-iphoneos/BackOffice.build/Script-7E4F6707694226143D2E7E0B.sh
(1 次失败)
[15:59:39]:退出状态:65

+---------------+--------------+
|搭建环境 |
+---------------+--------------+
| xcode_path |/应用程序/Xcode.app |
|健身房版本 | 2.106.2 |
|导出方法 |应用商店 |
| sdk | iPhoneOS11.4.sdk |
+---------------+--------------+

[15:59:39]:▸ 总大小为 481485,加速为 1.00
[15:59:39]:▸ 代码签名/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice-gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice_AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/ACEExpandableTextCell .framework with Identity iPhone Distribution: MyCompany Inc. (XXXXXXXXXX)
[15:59:39]: ▸/usr/bin/codesign --force --sign CB480CDBA0169C56DA9597D6941095F254D89B3B --preserve-metadata=identifier,entitlements '/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice-gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice_AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/ACEExpandableTextCell.framework'
[15:59:39]:▸/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice-gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice_AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/ACEExpandableTextCell.framework : errSecInternalComponent
[15:59:39]:▸ 命令/bin/sh 失败,退出代码为 1



Best Answer-推荐答案


我在 Jenkins 服务器上遇到了同样的问题。为了修复它,我在匹配操作中使用了以下标志

keychain_password: "my_Mac_Password"

一旦我能够让它工作一次,我就把它拿出来。

您也可以尝试unlock_keychain如果您不使用匹配,请执行操作。

关于ios - Jenkins 或远程登录上的 FaSTLane 错误 65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52837998/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4