For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mobile development with Harness

Use Harness CI for developing mobile apps

Harness CI supports mobile app development.

If you don't have a Harness account yet, you can create one for free at app.harness.io.

Mobile app development guides

These guides contain a variety of information about mobile development with Harness CI, including installing dependencies, running tests, and distribution.

Plugins and scripts for mobile development

There are several ways to run scripts and use plugins in Harness CI. You can run Bitrise Steps, GitHub Actions, fastlane scripts, Firebase scripts, Xcode commands, and more.

Variables and secrets for mobile development

You can use Run steps to run all manner of commands or scripts. If your Run step defines or ingests a variable, make sure you understand how output variables and environment variables work in Run steps. You can also declare variables at the stage level and redefine their values in steps.

Store tokens, passwords, and other sensitive data as secrets and then use expressions to reference secrets in your pipelines. For example, you can use an expression as the value for a variable:

App distribution with Harness CI

You can run distribution scripts for your preferred mobile development tool's CLI in a Run step.

For more information about the commands to use in your Run steps, refer to the provider's documentation. Here are some examples:

Mobile development YAML examples

Here are some examples of pipelines for mobile development. These pipelines are for example purposes only. They are meant to help you conceptualize how you can organize a Harness pipeline for mobile development.

This example builds an iOS app from an Xcode project and then uploads the artifact to JFrog Artifactory.

This example uses fastlane to build and test a Swift-based iOS app project. This example uses step templates to repeat common steps in each stage. You can use input sets to make customizable templates that allow users to use the same pipeline for multiple use cases by varying the input for certain values provided at runtime.

This example demonstrates a pipeline that builds, tests, and deploys a mobile app in one stage.

The above example was adapted from a Canopas blog post that used GitLab CI to demonstrate mobile app deployment. For more information about converting GitLab workflows to Harness CI pipelines, go to Migrate from GitLab CI to Harness CI.

This example shows how you can run Bitrise Steps in the Harness CI Bitrise step to deploy an Android app. This example is based on Bitrise workflow recipes for Android apps, and the same concepts apply to Bitrise workflow recipes for iOS apps.

Last updated

Was this helpful?