简体   繁体   English

iOS - 与Fastlane / Bamboo的持续集成

[英]iOS - Continuous Integration with Fastlane / Bamboo

We have an On-Premise Bamboo Server hosted on RHEL & we want to Integrate FastLane to automate our Mobile App CI/CD process. 我们在RHEL上托管了一个内部部署Bamboo服务器,我们希望集成FastLane以自动化我们的移动应用程序CI / CD流程。 We have a Mac laptop which is used for iOS build but the plan is to automate the process. 我们有一台用于iOS构建的Mac笔记本电脑,但计划是自动化该过程。 Can someone give any pointers to integrate the FastLane with the on-prem Bamboo CI server. 有人可以指出将FastLane与本地Bamboo CI服务器集成的任何指针。

Initial Setup 最初设定

  • Setup a Bamboo Remote Agent on your Mac Laptop where you want to automate the process. 在Mac笔记本电脑上设置要自动执行此过程的Bamboo Remote Agent。 In order to do so you'll need to be on a license tier that supports the remote agent. 为此,您需要位于支持远程代理的许可证层上。 Atlassian has step-by-step instructions for setting up the agent on your Mac. Atlassian提供了在Mac上设置代理的分步说明
  • Ensure that the latest XCode is installed. 确保安装了最新的XCode。
  • Follow the instructions to setup Fastlane on your Mac. 按照说明在Mac上设置Fastlane Even though Bamboo has the task step built-in, you will still need to configure the capability on the Mac. 尽管Bamboo内置了任务步骤,但您仍需要在Mac上配置该功能 Failure to do so will result in your RHEL server thinking it can do the iOS builds. 如果不这样做,将导致您的RHEL服务器认为它可以执行iOS构建。 You should see in the job configuration and requirements page that only the Mac can execute this build job. 您应该在作业配置和需求页面中看到只有Mac才能执行此构建作业。

Configuring Fastlane 配置Fastlane

  • Follow the Fastlane guide for integrating with Bamboo . 按照Fastlane指南与Bamboo集成

  • Look into setting up Match so that you do not run into as many provisioning profile signing issues with Fastlane. 查看设置Match,以便您不会遇到与Fastlane一样多的配置文件签名问题。 This will also allow anyone on the team to continue to build. 这也将允许团队中的任何人继续构建。

Pitfalls 陷阱

  • iOS Provisioning Profile errors are fairly common when setting up this process. 设置此过程时,iOS Provisioning Profile错误相当常见。
  • Permission issues often cause errors. 权限问题通常会导致错误。 The Bamboo logs should tell you what the problem is. Bamboo日志应该告诉你问题是什么。

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

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