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

如何修復錯誤“無法從 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(如何修復錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:10.12來自Appium)
本文介紹了如何修復錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:'10.12'"來自Appium的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我安裝了 appium-1.5.3.dmg 但是當我點擊聽診器按鈕時,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;}}

點擊啟動聽診器按鈕

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

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

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 成人免费区一区二区三区 | 国际精品鲁一鲁一区二区小说 | 日韩精品无码一区二区三区 | 97国产精品视频 | 国产成人99久久亚洲综合精品 | 色橹橹欧美在线观看视频高清 | 操皮视频| 欧美日本在线观看 | 日本亚洲一区 | 亚洲成人久久久 | 欧美成人一区二区三区 | www国产成人 | 91精品国产一二三 | 国产在线观看一区二区 | 国产片一区二区三区 | 国外激情av | 欧美久久视频 | 欧美日韩国产精品一区 | 国产资源视频 | 国产美女久久 | 亚洲国产精品久久久久 | 第一区在线观看免费国语入口 | 精品一二 | 久久99精品久久久久子伦 | 一区二区三区免费看 | 午夜精品影院 | 伊人手机在线视频 | 久草在线 | 天天综合成人网 | av免费在线观看网站 | 久久com | 福利网址| 国产精品久久久久久久免费观看 | 国产精品不卡 | 日韩在线视频一区 | 亚洲婷婷六月天 | 亚洲在线一区 | 精品久久香蕉国产线看观看亚洲 | 欧美日日 | 久久久久久国产精品免费免费 | 午夜精品一区二区三区在线视频 |