Appium 安裝相關(guān)

安裝bundletool.jar

)
在執(zhí)行appium-docotor 報錯 bundletool.jar cannot be found

問題索引:

  1. bundletool.jar cannot be found
  2. appium上 bundletool.jar 安裝

直接安裝

但是此方法并不能被Appium識別

brew install bundletool

Appium中bundletool.jar的安裝

  1. 下載 bundletool.jar
  2. 下載完后改名成bundletool.jar
  3. 找到存儲位置(我的位置)
/Users/{YOUR USER}/Library/Android/sdk/bundle-tool/bundletool.jar
  1. 加權(quán)限
chmod +x /{PATH}/bundle-tool/
chmod +x /{PATH}/bundle-tool/bundletool.jar
  1. 增加環(huán)境變量 默認的終端的話修改.bash_profile ,因為我用的是zsh,所以修改的是~/.zshrc。末尾追加一條環(huán)境變量, 當(dāng)然前提是你得有{ANDROID_HOME}要不就可以寫完整路徑
export PATH=${PATH}:${ANDROID_HOME}/bundle-tool/

  1. source ~/.zshrc ??梢宰屌渲昧⒓瓷?/li>
  2. 執(zhí)行 which bundletool.jar
  3. 如果有了地址輸出,則任務(wù)完成。
?  ~  which bundletool.jar
/Users/{YOURNAME}/Library/Android/sdk/bundle-tool/bundletool.jar

安裝AppleSimulatorUtils

brew tap wix/brew
brew install applesimutils
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容