> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an iOS app with Devin

> Building an iOS app with Devin on a macOS VM: building SwiftUI code, testing in the iOS Simulator, and shipping to TestFlight

<video controls width="100%" playsInline>
  <source src="https://mintcdn.com/cognitionai-enterprise/wL3yVWX7RDPYSv-_/images/tutorial-library/ios-app-walkthrough.mp4?fit=max&auto=format&n=wL3yVWX7RDPYSv-_&q=85&s=7d51245f52ab62c8a90578f03b186937" type="video/mp4" />
</video>

Devin building a SwiftUI app on a macOS VM and testing it in the iPhone and iPad simulators

## Before you start

**Pro or Teams**

Make sure you have a Devin [Pro or Teams](https://docs.devinenterprise.com/admin/billing/self-serve.md) account. macOS sessions are available by default.

**Enterprise**

* **Enable macOS VMs**: ask your account team to turn on macOS VMs for your organization. See [macOS support](https://docs.devinenterprise.com/onboard-devin/environment/macos-support.md).
* **Enable Computer Use**: turn on **Computer use** under [Settings > Devin](https://app.devin.ai/settings/devin) > **Sessions** so Devin can interact with the Simulator and record its testing. See [Computer Use](https://docs.devinenterprise.com/work-with-devin/computer-use.md).

## Step 1: Prompt Devin to build the app

Open [Devin](https://app.devin.ai/) and choose **macOS** from the platform menu below the prompt box. Xcode, the iOS Simulator, and Homebrew are preinstalled.

![Choosing macOS from the platform menu below the Devin prompt box](https://mintcdn.com/cognitionai-enterprise/YlDRCJNZf0Lbn3qA/images/tutorial-library/ios-app-choose-macos.png?fit=max\&auto=format\&n=YlDRCJNZf0Lbn3qA\&q=85\&s=92b7104a3f74a0bb6a7a670590d27f51)

Type what you want Devin to build:

```text theme={null}
build a flappy otter game for iphone, like flappy bird but a cute otter instead
```

## Step 2: Watch Devin build and test

Devin works through the task much like an iOS developer would:

![Devin building Flappy Otter in a macOS session](https://mintcdn.com/cognitionai-enterprise/NiuKfUGW5bMpKumV/images/tutorial-library/ios-app-session.png?fit=max\&auto=format\&n=NiuKfUGW5bMpKumV\&q=85\&s=020248890d3079df1e2b0d6baa044224)

1. **Creates the project in Xcode**
2. **Builds and fixes errors**
3. **Runs the game in the Simulator**
4. **Plays the game**: taps to make the otter jump with [Computer Use](https://docs.devinenterprise.com/work-with-devin/computer-use.md), checks that scoring and collisions work, and [records](https://docs.devinenterprise.com/work-with-devin/testing-and-recordings.md) the run.
5. **Shares the result**: sends you the recording and opens a pull request if the session has a repository.

![Devin's recording of Flappy Otter running in the iOS Simulator](https://mintcdn.com/cognitionai-enterprise/NiuKfUGW5bMpKumV/images/tutorial-library/otter-recording.gif?s=b36cbd165bc30c8df1f952c0ff3116cc)

You can open the **Computer** tab in the session workspace to watch the booted simulator live while Devin taps through the app.

![The Computer tab showing Flappy Otter in the iOS Simulator](https://mintcdn.com/cognitionai-enterprise/bGjvrdBGeKL1k7Ps/images/tutorial-library/ios-app-computer.png?fit=max\&auto=format\&n=bGjvrdBGeKL1k7Ps\&q=85\&s=7d1f4a4f96d8302490a4987712f9bda2)

## Step 3: Review and iterate

Continue building in the same session with more features:

![Asking Devin for more Flappy Otter features in the same session](https://mintcdn.com/cognitionai-enterprise/bGjvrdBGeKL1k7Ps/images/tutorial-library/ios-app-more-features.png?fit=max\&auto=format\&n=bGjvrdBGeKL1k7Ps\&q=85\&s=639d1f2c0909f5c2e8d5dcf7172de62a)

## Optional: Ship a beta to TestFlight

To test on a real iPhone, see [Upload iOS builds to TestFlight](https://docs.devinenterprise.com/onboard-devin/environment/testflight.md).

See [macOS support limitations](https://docs.devinenterprise.com/onboard-devin/environment/macos-support.md#limitations) to learn more about Devin macOS support.

## Next steps

> **[TestFlight uploads](https://docs.devinenterprise.com/onboard-devin/environment/testflight.md)**
>
> App Store Connect setup, API keys, and secrets for uploading builds

> **[macOS support](https://docs.devinenterprise.com/onboard-devin/environment/macos-support.md)**
>
> Blueprint options, preinstalled tools, and troubleshooting for macOS sessions

> **[Testing and recordings](https://docs.devinenterprise.com/work-with-devin/testing-and-recordings.md)**
>
> How Devin tests your app and records the results


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.