通过Jenkins将iOS .ipa文件上传到testflight [英] Uploading iOS .ipa file to testflight via Jenkins

查看:494
本文介绍了通过Jenkins将iOS .ipa文件上传到testflight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能迟到CI/CD派对,但总比没有好.到目前为止,我已经能够在不包含XCode的单独MAC上设置Jenkins.我将此MAC用作24x7小型服务器,以进行较小的操作.存档和将其上传到我的iOS应用程序的testflight上浪费了很多时间,所以我想到了设置CI/CD流程.

I might be late to the CI/CD party but better late than never. So far, I am able to setup Jenkins on a separate MAC which does not contain XCode. I use this MAC as a 24x7 small server for minor operations. A lot of time was wasted for archiving and then uploading that build to testflight for my iOS apps so I thought of setting up a CI/CD process.

设置Jenkins之后,我能够为指定目标(发布/调试)生成.ipa文件.

After the Jenkins setup, I am able to generate the .ipa file for specified target (release/debug).

现在,我要将这个.ipa文件上传到Testflight.这是我已经知道的:

Now I want to upload this .ipa file to Testflight. This is what I know already:

  1. 通过ALTool::根据此 answer ,我应该使用AlTool. AlTool就是XCode内的Application Loader.我不想在此单独的MAC上安装XCode,所以这不是我可以使用的.
  2. 通过shell脚本::如果您在上述要点中看到答案的问题,则用户已经提到了一个脚本.我也尝试过,但失败了.
  3. 通过深圳:已弃用.在Github页面本身上,他们提到使用Fastlane.
  4. 通过Testflight插件: 是也已弃用.
  1. Via ALTool: As per this answer, I should use AlTool. AlTool is nothing but the Application Loader inside XCode. I don't want to install XCode on this separate MAC, so this is not what I can work with.
  2. Via shell script: If you see the question of the answer in the above point, the user has mentioned a script. I have tried that as well and it fails.
  3. Via Shenzen: This is deprecated. On the Github page itself, they have mentioned to use Fastlane.
  4. Via Testflight plugin: This is also deprecated.

所以基本上,我的感觉是,除非我们使用需要安装XCode的ALTool,否则Jenkins本身无法将iOS版本分发给testflight.是否有解决方法可以完全通过Jenkins做到?

So basically, what I feel is Jenkins alone itself can not distribute iOS builds to testflight, unless we use ALTool which requires XCode to be installed. Is there a workaround to do it purely via Jenkins?

推荐答案

是的,有更好的选择,强烈建议使用Fastlane.

Yes, there is a better option, strongly recommend Fastlane.

您可以在此处

You can check here and here is specifically for TestFlight

您需要在Jenkins上安装Fastlane,但是执行起来既简单又快速.

You need to have Fastlane on the Jenkins but it is execution is easy and fast.

正如我们所讨论的,您还可以使用 AppStoreConnect API 自行实现连接

Also as we discussed you can implement connection by yourself using AppStoreConnect API

这篇关于通过Jenkins将iOS .ipa文件上传到testflight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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