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

提供:MonoBook
ページの作成:「== 手順 == === appium本体 === brew install 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 <source lang=bash> appium driver install uiautomator2 </source> <source lang=bash> brew install bundleto…」
 
1行目: 1行目:
== 手順 ==
== 手順 ==
=== appium本体 ===
=== appium本体 ===
appium本体をインストールする。
<source lang=bash>
brew install appium
brew install appium
</source>
appium本体を常駐させる
<source lang=bash>
brew services start appium   
brew services start appium   
</source>


=== 共通パッケージ ===
=== 共通パッケージ ===
共通パッケージを入れる。
<source lang=bash>
brew instal ffmpeg
brew instal ffmpeg
</source>


=== android + UIAutomator 2.0 ===
=== android + UIAutomator 2.0 ===
15行目: 25行目:
* export PATH=$PATH:$ANDROID_HOME/platform-tools
* export PATH=$PATH:$ANDROID_HOME/platform-tools


 
uiautomator2のドライバーを入れる。
<source lang=bash>
<source lang=bash>
appium driver install uiautomator2  
appium driver install uiautomator2  
</source>
</source>


bundletoolを入れる。インテルMacとアップルシリコンMacでパスが違うので注意。
以下はインテルの例。古いインテルMac miniを[[AIエージェント]]専用機にする前提となっている。
<source lang=bash>
<source lang=bash>
brew install bundletool  
brew install bundletool  
25行目: 37行目:
</source>
</source>


GStreamerを入れる。
<source lang=bash>
<source lang=bash>
brew install gstreamer
brew install gstreamer
</source>
</source>


問題ないか確認する。
<source lang=bash>
<source lang=bash>
appium driver doctor uiautomator2  
appium driver doctor uiautomator2  
34行目: 48行目:


=== iOS  ===
=== iOS  ===
xcuitestドライバーを入れる。
<source lang=bash>
<source lang=bash>
appium driver install xcuitest   
appium driver install xcuitest   
</source>
</source>


applesimutilsを入れる。
<source lang=bash>
<source lang=bash>
brew tap wix/brew
brew tap wix/brew
43行目: 59行目:
</source>
</source>


idb-companionを入れる。
<source lang=bash>
<source lang=bash>
brew tap facebook/fb
brew tap facebook/fb
brew install idb-companion
brew install idb-companion


idbを入れる。
<source lang=bash>
pip3 install --user fb-idb
pip3 install --user fb-idb
export PATH="$(python3 -m site --user-base)/bin:$PATH"
</source>
</source>


.zshrcにidbのパスを追加する。
export PATH="$(python3 -m site --user-base)/bin:$PATH"
問題ないか確認する。
<source lang=bash>
<source lang=bash>
appium driver doctor xcuitest  
appium driver doctor xcuitest  
56行目: 78行目:


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


自動化を許可する。
<source lang=bash>
<source lang=bash>
automationmodetool enable-automationmode-without-authentication
automationmodetool enable-automationmode-without-authentication
</source>
</source>


問題ないか確認する。
<source lang=bash>
<source lang=bash>
appium driver doctor mac2
appium driver doctor mac2

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

手順

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