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

# Devin で iOS アプリを構築する

> macOS VM 上で Devin を使って iOS アプリを構築する: SwiftUI コードのビルド、iOS シミュレータでのテスト、TestFlight への配信

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

macOS VM 上で SwiftUI アプリを構築し、iPhone と iPad のシミュレータでテストする Devin

## 始める前に

> [tab] Pro または Teams
>
> Devin の [Pro または Teams](https://docs.devin.ai/ja/admin/billing/self-serve.md) アカウントをお持ちであることをご確認ください。macOS セッションはデフォルトで利用できます。

> [tab] Enterprise
>
> * **macOS VM の有効化**: アカウントチームに、組織で macOS VM を有効化するよう依頼してください。詳しくは [macOS サポート](https://docs.devin.ai/ja/onboard-devin/environment/macos-support.md)をご覧ください。
> * **Computer Use の有効化**: [Settings > Devin](https://app.devin.ai/settings/devin) > **Sessions** で **Computer use** をオンにします。これにより、Devin がシミュレータを操作し、テストの様子を録画できるようになります。詳しくは [Computer Use](https://docs.devin.ai/ja/work-with-devin/computer-use.md)をご覧ください。

## Step 1: Devin にアプリのビルドを指示する

[Devin](https://app.devin.ai/) を開き、プロンプトボックスの下にあるプラットフォームメニューから **macOS** を選択します。Xcode、iOS シミュレータ、Homebrew はプリインストール済みです。

![Devin のプロンプトボックスの下にあるプラットフォームメニューから macOS を選択する](https://mintcdn.com/cognitionai/qTeOZiARn3g19g1z/images/tutorial-library/ios-app-choose-macos.png?fit=max\&auto=format\&n=qTeOZiARn3g19g1z\&q=85\&s=d7903bb01d581b1d034e5edaf9a8526b)

Devin にビルドしてほしいものを入力します。

```text theme={null}
iPhone 向けに flappy otter っていうゲームを作って。flappy bird みたいな感じで、鳥じゃなくてかわいいカワウソにして
```

## ステップ2: Devin のビルドとテストを見守る

Devin は iOS 開発者と同じような流れでタスクを進めます。

![macOS セッションで Flappy Otter をビルドする Devin](https://mintcdn.com/cognitionai/icmftsHrCf6R13_9/images/tutorial-library/ios-app-session.png?fit=max\&auto=format\&n=icmftsHrCf6R13_9\&q=85\&s=1c1490a6a419957ea3725140fd7711e9)

1. **Xcode でプロジェクトを作成**
2. **ビルドしてエラーを修正**
3. **シミュレータでゲームを実行**
4. **ゲームをプレイ**: [Computer Use](https://docs.devin.ai/ja/work-with-devin/computer-use.md) でタップしてカワウソをジャンプさせ、スコアと衝突判定が正しく動作するかを検査したうえで、その実行を[録画](https://docs.devin.ai/ja/work-with-devin/testing-and-recordings.md)します。
5. **結果を共有**: 録画を送信し、セッションにリポジトリがあればプルリクエストを作成します。

![iOS シミュレータで Flappy Otter を実行する Devin の録画](https://mintcdn.com/cognitionai/icmftsHrCf6R13_9/images/tutorial-library/otter-recording.gif?s=38ade049944bcc5fbf33842c899cb3ba)

セッションのワークスペースで **Computer** タブを開くと、Devin がアプリをタップ操作する様子を、起動中のシミュレータ上でリアルタイムに確認できます。

![iOS シミュレータで Flappy Otter を表示する Computer タブ](https://mintcdn.com/cognitionai/gGes9NNzAQ-H2nvl/images/tutorial-library/ios-app-computer.png?fit=max\&auto=format\&n=gGes9NNzAQ-H2nvl\&q=85\&s=8d6634f21671ae08b862cec93cd21833)

## ステップ3: レビューと反復

同じセッション内で機能を追加しながら開発を続けましょう。

![同じセッションで Devin に Flappy Otter の機能追加を依頼する](https://mintcdn.com/cognitionai/gGes9NNzAQ-H2nvl/images/tutorial-library/ios-app-more-features.png?fit=max\&auto=format\&n=gGes9NNzAQ-H2nvl\&q=85\&s=0396d2676a466e2091f48b0821629ee3)

## 任意: TestFlightにベータ版を配信する

実機のiPhoneでテストするには、[iOSビルドをTestFlightにアップロードする](https://docs.devin.ai/ja/onboard-devin/environment/testflight.md)を参照してください。

DevinのmacOS サポートについて詳しくは、[macOS サポートの制限事項](https://docs.devin.ai/ja/onboard-devin/environment/macos-support.md#limitations)を参照してください。

## 次のステップ

> [card] [TestFlightへのアップロード](https://docs.devin.ai/ja/onboard-devin/environment/testflight.md)
>
> ビルドをアップロードするためのApp Store Connectの設定、APIキー、シークレット

> [card] [macOSのサポート](https://docs.devin.ai/ja/onboard-devin/environment/macos-support.md)
>
> macOSセッション向けのブループリント設定、プリインストール済みツール、トラブルシューティング

> [card] [テストと録画](https://docs.devin.ai/ja/work-with-devin/testing-and-recordings.md)
>
> Devinがアプリをテストし、結果を記録する仕組み


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