久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何修復(fù)錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版

How to fix error quot;Could not detect Mac OS X Version from sw_vers output: #39;10.12 #39;quot; from Appium(如何修復(fù)錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:10.12來自Appium)
本文介紹了如何修復(fù)錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:'10.12'"來自Appium的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

我安裝了 appium-1.5.3.dmg 但是當(dāng)我點(diǎn)擊聽診器按鈕時,Appium 顯示錯誤:

I installed appium-1.5.3.dmg But when I click the stethoscope button the Appium is show error :

 ? Xcode is installed at: /Library/Developer/CommandLineTools
[Error: Could not detect Mac OS X Version from sw_vers output: '10.12
']

謝謝!

推薦答案

它對我有用.

你可以通過這個命令配置文件:

You can config file by this command:

  • grep -rl "無法從 sw_vers 輸出中檢測到 Mac OS X 版本:"/Applications/Appium.app/

  • 終端會顯示:/Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/build/lib/system.js/Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/lib/system.js/Applications/Appium.app//Contents/Resources/node_modules/appium-support/build/lib/system.js/Applications/Appium.app//Contents/Resources/node_modules/appium-support/lib/system.js

  • Terminal will show : /Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/build/lib/system.js /Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/lib/system.js /Applications/Appium.app//Contents/Resources/node_modules/appium-support/build/lib/system.js /Applications/Appium.app//Contents/Resources/node_modules/appium-support/lib/system.js

使用命令 vim 并配置每個文件.

Use command vim and config each file.

vim /Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/build/lib/system.js

配置文件:

  1. 更改自 ->

  1. Change From ->

案例10:_arr = ['10.8', '10.9', '10.10', '10.11'];_i = 0;

到->

案例10:_arr = ['10.8', '10.9', '10.10', '10.11','10.12'];_i = 0;

<小時>

vim /Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/lib/system.js

配置文件:

  1. 更改自 ->

  1. Change From ->

試試{stdout = (await exec('sw_vers', ['-productVersion'])).stdout;}

到 ->

試試{stdout = (await exec('sw_vers', ['-productVersion'])).stdout.trim();}

更改自 ->

for (let v of ['10.8', '10.9', '10.10', '10.11']) {if (stdout.indexOf(v) === 0) { return v;}}

到->

for (let v of ['10.8', '10.9', '10.10', '10.11','10.12']) {if (stdout.indexOf(v) === 0) { return v;}}

<小時>

vim /Applications/Appium.app//Contents/Resources/node_modules/appium-support/build/lib/system.js

配置文件:

  1. 更改自 ->

  1. Change From ->

案例10:_arr = ['10.8', '10.9', '10.10', '10.11'];_i = 0;

到->

案例10:_arr = ['10.8', '10.9', '10.10', '10.11','10.12'];_i = 0;

<小時>

vim /Applications/Appium.app//Contents/Resources/node_modules/appium-support/lib/system.js

配置文件:

  1. 更改自 ->

  1. Change From ->

試試{stdout = (await exec('sw_vers', ['-productVersion'])).stdout;}

到->

試試{stdout = (await exec('sw_vers', ['-productVersion'])).stdout.trim();}

更改自 ->

for (let v of ['10.8', '10.9', '10.10', '10.11']) {if (stdout.indexOf(v) === 0) { return v;}}

到->

for (let v of ['10.8', '10.9', '10.10', '10.11','10.12']) {if (stdout.indexOf(v) === 0) { return v;}}

點(diǎn)擊啟動聽診器按鈕

這篇關(guān)于如何修復(fù)錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:'10.12'"來自Appium的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 综合一区二区三区 | 亚洲精品乱码久久久久久久久久 | 欧美老少妇一级特黄一片 | 国产在线a | 精品一区二区久久久久久久网站 | 久久这里只有精品首页 | 在线观看国产 | 久久国产区 | 狠狠躁躁夜夜躁波多野结依 | 亚洲码欧美码一区二区三区 | 亚洲色综合 | 欧美午夜影院 | 一级片网站视频 | 国家一级黄色片 | 一区二区国产精品 | 久久婷婷国产香蕉 | 亚洲一二三区精品 | 欧洲一区二区视频 | 欧美三区在线观看 | 国产成人艳妇aa视频在线 | 精品一区二区三区日本 | h视频在线免费 | 日韩欧美专区 | 欧美亚洲国产日韩 | 欧美在线国产精品 | 国产精品国产a | 五月婷婷丁香 | 99精品久久 | 欧美久久久久久久久中文字幕 | 天天草天天操 | 国产精品1区2区 | 欧美一级一| 亚洲一区中文字幕在线观看 | 成人午夜高清 | 一区二区三区小视频 | 久草新视频 | 青草青草久热精品视频在线观看 | 免费国产一区二区视频 | 国产精品大片在线观看 | 色综合99 | 一区二区三区精品在线视频 |