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

ページの作成:「== 手順 == === 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…」
 
 
(同じ利用者による、間の5版が非表示)
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 ==
環境変数に以下が設定されていること。
環境変数に以下が設定されていること。
* JAVA_HOME
* JAVA_HOME
15行目: 23行目:
* 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行目: 35行目:
</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  
</source>
</source>


=== iOS ===
== iOS + xcuitest ==
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行目: 57行目:
</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
</source>


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  
</source>
</source>


=== Mac Catalyst ===
== Mac Catalyst + Mac2==
iOSアプリを作る際はMac Catalystでザックリ作ってから最後にiOS実機で微調整した方が捗る。ビルドと転送の手間が劇的に減る。
 
Mac無印とMac CatalystはどちらもMac2ドライバーとなっている。
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