appium xcode 模擬器安裝app_appium

來源:互聯網
上載者:User

很多時候我們可以從開發那裡拿到.app

基本上都是用appium去自動安裝的,最近我拿到的新版本的app在自己的mac上用appium安裝,結果安裝好以後,開啟應用就奔潰。

網上搜尋了下,好像是開發給的版本有問題。(好像需要用不帶認證的app才可以在模擬器上安裝)


不過在公司的mac的模擬器上打算安裝下看看是不是因為開發給的版本的問題。

但是公司裡appium還不可以使用,於是打算在模擬器上直接安裝app看看是否會奔潰。


在終端輸入xcrun simctl install booted xxx.app路徑,點擊斷行符號。注意,xxx.app路徑為你需要安裝到模擬器中的app的路徑,擷取方法直接將其拖入終端即可。這裡有個小技巧,可先複製 xcrun simctl install booted 粘貼到終端,然後再將xxx.app拖入到終端,兩者之間以空格隔開。

異常問題

1、xcrun simctl install booted /path/xxx.app

2、xcrun: error: unable to find utility “simctl”, not a developer tool or in PATH` 
xcrun simctl install booted /path/xxx.app

3、xcrun: error: active developer path (“/Volumes/Xcode/Xcode.app/Contents/Developer”) does not exist, usexcode-select –switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or seeman xcode-select) 
No devices are booted`

這些問題將會導致安裝不成功,如果沒有安裝上可執行下面的操作。 解決方案

steps 1:擷取Xcode路徑。擷取Xcode路徑只需到應用程式中找到Xcode,然後將其拖入到終端即可擷取到Xcode的路徑。

steps 2:在終端中繼續輸入 sudo xcode-select -switch Xcode路徑/Contents/Developer 即可。

Tips

比如我的Xcode路徑為:/Applications/Xcode.app。那麼我在終端中則會輸入為:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.