# iOS シミュレータービルド

iOSアプリのビルドでは、iOSシミュレーターで動作するビルドイメージを出力することができます。 \
実機でのデバッグには証明書やプロビジョニングプロファイルが必要となりますが、シミュレータービルドではこれらが不要です。 \
従ってApple Dveloper Programのアカウントが無くても動作確認が可能です。

### 制限事項

* シミュレータービルドされたアプリを実機へインストールすることはできません。
* ハードウェアに依存するような機能はシミュレーターでは動作できません。\
  &#x20;例)
  * カメラによる写真・動画撮影
  * バーコードスキャナー
  * NFCリーダー

### 必要な環境

* Mac OSを利用\
  Mac OS上のシミュレーターでアプリの動作確認ができます。利用にはXcodeのインストールが必要です。
* 外部サービスの利用\
  `Appetize.io` などの外部サービスを利用すればシミュレーターがインストールされていない環境でも動作確認が可能です。

### ローカルのシミュレーターでの動作確認

1. **ビルド→iOSアプリのビルド** から`シミュレータービルド`を選択してビルドを実行してください。

<figure><img src="/files/xSAJcxvSyaeGR0NBKCWN" alt=""><figcaption></figcaption></figure>

2\. ビルドが完了するとビルド結果に`ローカルPCにダウンロード`が表示されます。クリックしてアプリをダウンロードしてください。

<figure><img src="/files/Rr6uPoUqFM2q7qUHhoKb" alt=""><figcaption></figcaption></figure>

3\. ダウンロードされたzipファイルを解凍してシミュレーターにドラッグ＆ドロップしてください。

<figure><img src="/files/gpzERDX64ZwUfTv9phDe" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KeiM4m8ana4hwRYGgMvz" alt=""><figcaption></figcaption></figure>

4\. シミュレーター上で動作確認することができます。

<figure><img src="/files/V63xh7pYJs2mAN9Jm8Gm" alt=""><figcaption></figcaption></figure>

### Appetize.ioでの動作確認

1. 事前準備

`Appetize.io`を利用するためには、事前に外部サービスの登録とMonacaへの設定が必要です。 [Appetize.ioへの配信](https://ja.docs.monaca.io/products_guide/monaca_ide/monaca_ci/appetizeio)を参照して`Appetize.io`を登録してください。

2\. **ビルド→iOSアプリのビルド** から`シミュレータービルド`を選択してビルドを実行してください。 \
ビルドが完了するとビルド結果画面の下部に外部サービスとの連携機能が表示されます。\
`Appetize.io`をクリックしてください。

<figure><img src="/files/OY0kc1neGetTb0jSdmkB" alt=""><figcaption></figcaption></figure>

`デプロイ`をクリックすると`Appetize.io`にアプリが送信されます。

<figure><img src="/files/BGmnld2wjpqQ4NiBVlgl" alt=""><figcaption></figcaption></figure>

3\. `Appetize.io` サービスにログインして[ダッシュボード](https://appetize.io/apps)を開いてください。

<figure><img src="/files/yM0ikLyiHy9gN7fVvGNj" alt=""><figcaption></figcaption></figure>

`Appetize.io` にアプリが送信されていることが確認できます。

4\. `view` をクリックしてアプリを起動してください。

<figure><img src="/files/6PtJD3Ge5TZsnkZ1iHBH" alt=""><figcaption></figcaption></figure>

アプリが起動して動作確認を行うことができます。\
`Appetize.io`の操作方法については[公式のドキュメント](https://docs.appetize.io/)を参照してください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/products_guide/debugger/ios_simulator_build.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
