Ios Jenkins或远程登录出现Fastlane错误65

Ios Jenkins或远程登录出现Fastlane错误65,ios,fastlane,Ios,Fastlane,我知道这是一个已知的问题,曾经尝试过几次答案,但这次我发现我感觉很奇怪的情况。当对第一个Pod进行代码签名时,日志会告诉可怕的错误65和errSecInternalComponent 在Jenkins上运行时,我的构建失败 在CI机器上手动运行时,通过SSH登录并执行bundle exec fastlane appstore,它会失败 当我登录到远程桌面或物理访问CI计算机时,生成成功 我有安全解锁钥匙链命令,包含在构建之前的shell脚本中 bundle update export FAS

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

  • 在Jenkins上运行时,我的构建失败
  • 在CI机器上手动运行时,通过SSH登录并执行
    bundle exec fastlane appstore
    ,它会失败
  • 当我登录到远程桌面或物理访问CI计算机时,生成成功
我有
安全解锁钥匙链
命令,包含在构建之前的shell脚本中

bundle update export FASTLANE_DISABLE_COLORS=1 export APP_IDENTIFIER=com.example.MyApp security unlock-keychain -p topsecret ~/Library/Keychains/codesign.keychain && bundle exec fastlane appstore 包更新 导出FASTLANE\u禁用\u颜色=1 导出APP_IDENTIFIER=com.example.MyApp 安全解锁钥匙链-p topsecret~/Library/Keychains/codesign.keychain&bundle exec fastlane应用商店 我还试过其他巫毒,比如

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

Fastlane版本为2.106.0(最新版本)

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

▸ Running script '[CP] Embed Pods Frameworks' ** ARCHIVE FAILED ** The following build commands failed: 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 failure) [15:59:39]: Exit status: 65 +---------------+-------------------------+ | Build environment | +---------------+-------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.106.2 | | export_method | app-store | | sdk | iPhoneOS11.4.sdk | +---------------+-------------------------+ [15:59:39]: ▸ total size is 481485 speedup is 1.00 [15:59:39]: ▸ Code Signing /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]: ▸ Command /bin/sh failed with exit code 1 ▸ 正在运行脚本“[CP]嵌入Pods框架” **存档失败** 以下生成命令失败: PhaseScripteExecution[CP]\Embed\Pods\Frameworks/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice\u AppStore/intermediatebuildfilepath/BackOffice.Build/Release-iphoneos/BackOffice.Build/Script-7e4f67076942143d2e7e0b.sh (1次失败) [15:59:39]:退出状态:65 +---------------+-------------------------+ |建筑环境| +---------------+-------------------------+ |xcode_路径|/Applications/xcode.app| |gym|U版本| 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\u AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/acexpandabletexcell.framework带标识的iPhone发行版:MyCompany Inc.(xxxxxxxxxxxxx) [15:59:39]: ▸ /usr/bin/codesign——强制——签名CB480CDBA0169C56DA9597D6941095F254D89B3B——保留元数据=标识符,权限'/Users/ci/Library/Developer/Xcode/DerivedData/BackOffice gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice\u AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/acexpandabletexcell.framework' [15:59:39]: ▸ /Users/ci/Library/Developer/Xcode/DerivedData/BackOffice gprttmucbsbjiifnxdulcnwierfb/Build/Intermediates.noindex/ArchiveIntermediates/BackOffice\u AppStore/InstallationBuildProductsLocation/Applications//BackOffice.app/Frameworks/acexpandabletextcell.framework:errSecInternalComponent [15:59:39]: ▸ 命令/bin/sh失败,退出代码为1
我的Jenkins服务器上也有同样的问题。为了修复它,我在匹配操作中使用了以下标志

keychain_password: "my_Mac_Password"
一旦我能让它工作一次,我就把它拿出来了


如果不使用match,您也可以尝试此操作。

您能解决此问题吗?这对我来说是个恼人的问题。通过重新安装整个macos系统,我解决了这个问题,但很快我又遇到了。有了jenkins,你可以使用keychain和profile插件来解决这个问题。你是如何在
gym
中添加这个值的?它告诉我们这是一个无效的属性。我在文档中看不到:@c4k抱歉。这不是一个健身房的旗帜,而是一个动作。所以你需要在健身电话前加上它。我也更新了我的答案,因为我错了。