Jenkins找不到xcode设置文件 [英] xcode Provisioning File not found with Jenkins

查看:211
本文介绍了Jenkins找不到xcode设置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的xcodebuild通过ant成功运行了.如果我使用ssh进入系统并运行构建,则可以正常工作.但是,当通过Jenkins调用相同的ant目标(在mac上作为从属运行)时,经典

I have my xcodebuild running successfully through ant. If I ssh into the system and run the build, it works fine. However, when the same ant target is called via Jenkins (running as a slave on the mac), it fails with the classic

Code Sign error: a valid provisioning profile matching the application's Identifier 'xxx.xxx.xxx' could not be found" 

在尝试使其工作时,我尝试通过"sudo ant"调用来运行它,当然,这会导致相同的错误.本地用户和root用户都回显相同的$ PATH,所以这不是问题.我看不到改变环境或改变Jenkins调用ant的用户的方法.必须有其他人已经解决了这个问题-任何帮助将不胜感激.

In trying to get it to work, I tried running it via a 'sudo ant' call, and of course, this causes the same error. The local user and root both echo the same $PATH, so that's not the issue. I don't see a way to change the environment or change the user Jenkins invokes ant is. There must be someone else that has solved this - any help would be appreciated.

推荐答案

我遇到了类似的问题-不知道这是否是同一回事.但是,当您启动Jenkins时,是以用户身份还是以root用户身份运行它?第一次使用Jenkins时,我是通过运行sudo java -jar jenkins.war来启动它的,并且遇到了相同的Code Sign错误.当我在没有"sudo"的情况下运行它时,它运行良好.但是,不是100%知道为什么.也许与仅与用户相关联的证书有关?

I ran into something like this - don't know if it's the same thing. But when you start Jenkins are you running it as a user or running as root? The first time I started out with Jenkins I was kicking it off by running sudo java -jar jenkins.war and I was getting the same Code Sign error. When I ran it without 'sudo' it worked fine. Not 100% sure why, though. Maybe it has something to do with the certificate only being associated with the user?

这篇关于Jenkins找不到xcode设置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆