【发布时间】: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。
【问题讨论】:
-
this 是否与您面临的问题有关?
-
我在 Jenkins 机器中只有一个证书及其私钥,所以我不这么认为。
标签: ios swift xcode jenkins cocoapods