对詹金斯错误建筑iOS应用(MacOSX的服务器) [英] Error building iOS app on Jenkins (MacOSX server)

查看:176
本文介绍了对詹金斯错误建筑iOS应用(MacOSX的服务器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的詹金斯建筑作业以下消息未能

My Jenkins building job is failing with the following message

=== BUILD NATIVE TARGET MyTarget OF PROJECT MyProject WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: A valid provisioning profile matching the application's Identifier 'MyCompany.MyProjet' could not be found

现在,如果我尝试与选定的方案运行X codebuild命令詹金斯用户:

Now,if I try to run the xcodebuild command as jenkins user with a selected scheme:

/usr/bin/xcodebuild -target MyTarget -configuration Debug clean build

或本

/usr/bin/xcodebuild -scheme MyAwesomeScheme clean build

我得到了同样的错误,但如果我执行它作为其他用户(我的系统的主要用户)构建成功完成!它也可以在X $ C $角

I get the same error,BUT if I execute it as another user (my system main user) the build is successfully completed!!! It also works in Xcode.

此错误开始出现后,我又固定code签约错误复制我的证书登录和系统钥匙串小组。

This error start appearing after I fixed another code signing error copying my certificates in both Login and System keychain group.

它看起来像的詹金斯的用户无法访问的资源调配配置文件。不知道如何解决它?

It looks like the jenkins user cannot access the provisioning profiles. Any idea how to fix it?

推荐答案

您需要创建目录〜/图书馆/ MobileDevice /配置概况/ 的詹金斯用户。

You need to create the directory ~/Library/MobileDevice/Provisioning Profiles/ for the Jenkins user.

接下来,文件名为.mobileprovision复制到该目录中。

Next, copy the .mobileprovision files into that directory.

最后,设置目标构建设置的配置文件。 自动配置文件选择不X codebuild工作。

Last, set the provisioning profile in the Target build settings. 'Automatic Profile Selector' doesn't work with xcodebuild.

这篇关于对詹金斯错误建筑iOS应用(MacOSX的服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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