Upgrade to Pro — share decks privately, control downloads, hide ads and more …

大量のiOSシミュレータにアプリをインストールする

 大量のiOSシミュレータにアプリをインストールする

Mobile Act OSAKA 18で発表したものです。
https://mobileact.connpass.com/event/383587/

動画は動きません。

Avatar for gurrium

gurrium

March 07, 2026
Tweet

More Decks by gurrium

Other Decks in How-to & DIY

Transcript

  1. GigaViewer for Apps • マルチテナントのマンガビューワ • サポートOSは iOS 15~26 の5世代

    • デバイスも様々 • → 実機では揃えられない • → シミュレータで確認する 3
  2. シミュレータは数 が多いと起動が面 倒 • ❌ 操作が多い ◦ シミュレータの選択 →Run Without

    Building→起動中のア プリの中断 • ❌ アプリの起動が手動 4
  3. v1.0 スクリプト化 • ⭕ シミュレータの起動〜インストールまで自 動 • ❌ アプリの起動が手動 •

    ❌ アプリの切り替えが手動 ◦ app_path=”/path/to/hoge.app” ◦ # app_path=”/path/to/fuga.app” 6
  4. v1.1 使い勝手の改善 • ⭕ アプリの起動が自動 • ⭕ インタラクティブな アプリの切り替え ◦

    select app_path in $app_paths[@]; do … done • ⭕ Simulator.app が起動してなかったら起動 • ❌ 遅い 7
  5. v1.2 起動は直列、残りは並列 • ⭕ 若干速い ◦ シミュレータが起動していない場合は同等 ▪ 直列: 約1分30秒、並列:

    約1分30秒 ◦ シミュレータが起動済みの場合は少し速い ▪ 直列: 約7秒、並列: 約6秒 9
  6. 11 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER
  7. 12 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER
  8. 13 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER
  9. 14 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER
  10. 15 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER
  11. 16 流れ xcrun simctl list devices available -j | jq

    ... xcrun simctl boot $UDID xcrun simctl bootstatus $UDID -b xcrun simctl install $UDID $APP_PATH xcrun simctl launch $UDID $APP_IDENTIFIER