【问题标题】:Jenkins return "unknown error -1=ffffffffffffffff" when building Xcode Project with CocoapodsJenkins 在使用 Cocoapods 构建 Xcode 项目时返回“未知错误 -1=ffffffffffffffff”
【发布时间】:2018-03-13 13:26:57
【问题描述】:

尝试在 Jenkins 上构建 Xcode 工作区时出现以下错误

usr/bin/codesign --force --sign B5E96BDFADAF51D771B158A29BF1D16565215A2D --preserve-metadata=identifier,entitlements '/Users/servicebuild/Desktop/Jenkins/workspace/Hello-Branch/build/Hello Test.app/Frameworks/Alamofire 。框架' 16:06:07 /Users/servicebuild/Desktop/Jenkins/workspace/Hello-Branch/build/Hello Test.app/Frameworks/Alamofire.framework:未知错误-1=ffffffffffffffff 16:06:07 命令 /bin/sh 失败,退出代码为 1 16:06:07 16:06:07 ** 构建失败 ** 16:06:07 16:06:07 16:06:07 以下构建命令失败: 16:06:07 PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/servicebuild/Library/Developer/Xcode/DerivedData/Hello-dcvxwbnovymfusbrvfyyekingznu/Build/Intermediates.noindex/Garanti\ Filo.build/Release-iphoneos/Hello\你好\ Test.build/Script-2617FEF7DE193736656550249B.sh

我有多个目标,并且在工作区方案中我创建的目标被标记为共享(不是 pod 目标)。在 pod 项目中,每个框架都有“不编码符号”(默认)。我可以从 Xcode 成功获取 IPA 导出。但是,当我尝试在 Jenkins 中构建时,我得到了这个错误。

我在下面的帖子中尝试了解决方案,但无法弄清楚。我认为问题在于 Jenkins 在不需要时强制签署 pod。

Codesign returned unknown error -1=ffffffffffffffff

【问题讨论】:

  • this 是否与您面临的问题有关?
  • 我在 Jenkins 机器中只有一个证书及其私钥,所以我不这么认为。

标签: ios swift xcode jenkins cocoapods


【解决方案1】:

我想出了如何在下面的代码中运行(发布在我的问题中添加的帖子中)并且它有效。重要的一点是为钥匙串和密码提供正确的路径。否则,它不起作用。

security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password ${KEYCHAIN}

【讨论】:

    猜你喜欢
    • 2017-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-16
    • 1970-01-01
    相关资源
    最近更新 更多