【问题标题】:Xcodebuild code signing error on JenkinsJenkins上的Xcodebuild代码签名错误
【发布时间】:2015-07-22 19:08:02
【问题描述】:

尝试在 jenkins 上使用 xcodebuild 构建我的应用程序时出现以下代码签名错误

Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “xxxxxxxxxx” were found.
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

我可以从 xcode GUI 构建它,但是没有问题。这里发生了什么?显然,计算机拥有构建 .ipa 文件所需的一切,但我无法通过 Jenkins 和 xcodebuild 来做到这一点

【问题讨论】:

    标签: ios xcode jenkins code-signing xcodebuild


    【解决方案1】:

    Jenkins 默认以“jenkins”用户身份运行。显然,签名身份和移动配置文件存储在~ 中的每个用户配置文件中。

    要么让你的 Jenkins 使用与你的家庭用户相同的用户运行,要么让 jenkins 用户访问你所有的钥匙串和配置目录。

    编辑:
    关于如何更改用户的一些答案:How to install jenkins under current user (not 'jenkins') on MAC OS X

    【讨论】:

    • 谢谢,我如何“让 Jenkins 使用与我的家庭用户相同的用户运行?”那太好了
    • 如何启动 Jenkins?
    • 我通过命令行使用以下命令启动它“java -jar /Applications/Jenkins/jenkins.war”我将检查您建议的堆栈溢出线程,看看我是否也可以使用这些答案,谢谢!
    猜你喜欢
    • 1970-01-01
    • 2018-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多