「MacにAppium環境を構築する」の版間の差分

提供:MonoBook
編集の要約なし
1行目: 1行目:
== 手順 ==
== appium本体 ==
=== appium本体 ===
appium本体をインストールする。
appium本体をインストールする。
<source lang=bash>
<source lang=bash>
11行目: 10行目:
</source>
</source>


=== 共通パッケージ ===
共通パッケージを入れる。
共通パッケージを入れる。
<source lang=bash>
<source lang=bash>
17行目: 15行目:
</source>
</source>


=== android + UIAutomator 2.0 ===
== android + UIAutomator 2.0 ==
環境変数に以下が設定されていること。
環境変数に以下が設定されていること。
* JAVA_HOME
* JAVA_HOME
47行目: 45行目:
</source>
</source>


=== iOS  ===
== iOS  ==
xcuitestドライバーを入れる。
xcuitestドライバーを入れる。
<source lang=bash>
<source lang=bash>
77行目: 75行目:
</source>
</source>


=== Mac Catalyst ===
== Mac Catalyst ==
mac2ドライバを入れる。
mac2ドライバを入れる。
<source lang=bash>
<source lang=bash>

2026年4月13日 (月) 06:17時点における版

appium本体

appium本体をインストールする。

brew install appium

appium本体を常駐させる

brew services start appium

共通パッケージを入れる。

brew instal ffmpeg

android + UIAutomator 2.0

環境変数に以下が設定されていること。

  • JAVA_HOME
  • ANDROID_HOME

Android SDKのPlatform Toolsにパスが通っていること

  • export PATH=$PATH:$ANDROID_HOME/platform-tools

uiautomator2のドライバーを入れる。

appium driver install uiautomator2

bundletoolを入れる。インテルMacとアップルシリコンMacでパスが違うので注意。 以下はインテルの例。古いインテルMac miniをAIエージェント専用機にする前提となっている。

brew install bundletool 
ln -s /usr/local/bin/bundletool /usr/local/bin/bundletool.jar

GStreamerを入れる。

brew install gstreamer

問題ないか確認する。

appium driver doctor uiautomator2

iOS

xcuitestドライバーを入れる。

appium driver install xcuitest

applesimutilsを入れる。

brew tap wix/brew
brew install applesimutils

idb-companionを入れる。

brew tap facebook/fb
brew install idb-companion

idbを入れる。
<source lang=bash>
pip3 install --user fb-idb

.zshrcにidbのパスを追加する。

export PATH="$(python3 -m site --user-base)/bin:$PATH"

問題ないか確認する。

appium driver doctor xcuitest

Mac Catalyst

mac2ドライバを入れる。

appium driver install mac2

自動化を許可する。

automationmodetool enable-automationmode-without-authentication

問題ないか確認する。

appium driver doctor mac2