Build your app for the cloud

Build Android APKs and iOS .app bundles for Simulator to run on Maestro Cloud.

Before you can execute tests on Maestro Cloud, you must provide a mobile application binary (APK or .app directory). This page provides the specific technical requirements and build instructions for the most common development environments to ensure your app is compatible with Maestro's cloud infrastructure.

circle-info

Project-specific build requirements

The instructions on this page cover typical ways to build mobile applications. However, your project may have unique pipelines, specific command-line switches, or environment configurations (e.g., specialized Expo or React Native build scripts).

We recommend checking your project's README, internal developer documentation, or the official documentation for your chosen framework for exact build steps.

circle-check

Android build instructions

Maestro Cloud now uses ARM architectures for Android. Ensure your app binary meets the following requirements:

  • Format: APK only. Android App Bundles (.aab) are not currently supported.

  • Architecture: Must be compatible with ARM or be a multi-architecture build. x86-only APKs will fail to launch in the cloud environment.

  • Build Type: Both Release and Debug builds are supported.

To build your app, use one of the following approaches:

Run the following commands from your project root to generate the APK.

# To generate a Debug build
./gradlew assembleDebug

# To generate a Release build
./gradlew assembleRelease

Once finished, find the file in the app/build/outputs/apk/ directory.

iOS build instructions

Maestro Cloud runs iOS tests on Simulators. Do not upload binaries built for physical iOS devices.

  • Format: .app bundle.

  • Target: Must be built for the iOS Simulator.

To build your app, use one of the following options:

Use the xcodebuild command to create a simulator build. The following example builds a project named MyApp and saves the output to a build/ folder:

The .app bundle will be available in the build/ directory.

Run the build

Once your binary is ready, you can upload it to Maestro Cloud using the Maestro CLI or Maestro Studio:

Use the command:

Next steps

Now that you know how to build your app, you can explore one of the following guide categories to improve your use of Maestro Cloud:

  • CI/CD integration: Move your tests out of your local terminal and into your deployment pipeline.

  • Environment configuration: Customize the cloud hardware to match your users' real-world conditions.

  • Notifications: Set up Slack, Email, or Webhooks to keep your team informed of every pass or failure.

  • Advanced features: Use binary reuse to speed up iterations and manage secrets via environment variables.

If you haven’t tested the Maestro CLI yet, check the Run tests on Maestro Cloud guide.

Last updated