简体   繁体   English

Jenkins-命令行构建iOS项目

[英]Jenkins - command line build iOS project

I have an iOS project cloned from repo into my jenkins account. 我有一个从回购克隆到我的jenkins帐户中的iOS项目。 Xcode is not yet installed. Xcode尚未安装。 I know command line scripts to build an iOS project including targets/configurations/profiles etc. Certificate and provisioning profile is installed in jenkins account. 我知道用于构建iOS项目(包括目标/配置/配置文件等)的命令行脚本。jenkins帐户中安装了证书和配置文件。 I am wondering if there is a way to build and create ipa without installing Xcode in jankins account. 我想知道是否有一种无需在jankins帐户中安装Xcode即可构建和创建ipa的方法。 Does apple provide any developer tools for building and creating IPA through command line only? 苹果是否提供仅通过命令行构建和创建IPA的开发人员工具?

Advance thanks 预先感谢

Every building option for iOS apps requires Xcode, but apple does provide tools for building via CLI. iOS应用程序的每个构建选项都需要Xcode,但是Apple确实提供了用于通过CLI进行构建的工具。 A ton has changed in the most recent iOS OS upgrade and there are incredible tools out there for CI/CD app delivery. 在最近的iOS操作系统升级中,已经发生了许多变化,并且提供了令人难以置信的CI / CD应用交付工具。 What you end up using should really depend on what you want to maintain over time and how advanced your system needs to be. 最终使用的内容实际上应该取决于您要随时间推移维护的内容以及系统需要达到的先进程度。

To get Builds working in Jenkins 使构建在詹金斯工作

Step 1 : Install Xcode on the Jenkins node that will be doing the builds. 步骤1 :在将要进行构建的Jenkins节点上安装Xcode。 You wont be using the Xcode UI but you will need it installed, there is currently no way to build IPAs without Xcode. 您将不会使用Xcode UI,但需要安装它,当前没有Xcode不能构建IPA。

Step 2: Choose your build tool 步骤2:选择您的构建工具

The first two in this list do a good job of managing provisioning profiles out of the box, and that can save you major headaches down the road if you need to scale 此列表中的前两个很好地管理了开箱即用的配置文件,如果需要扩展,可以节省很多麻烦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM