閱讀53 返回首頁    go iPhone_iPad_Mac_手機_平板_蘋果apple


何小偉Appium:Could not detect Mac OS X Version……

How to fix error “Could not detect Mac OS X Version from sw_vers output: 10.12 ” from Appium

I installed appium-1.6.5.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 ]

grep -rl "Could not detect Mac OS X Version from sw_vers output:" /Applications/Appium.app/

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

Use command vim and config each file.

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

Change From ->

case 10: _arr = [ 10.8 , 10.9 , 10.10 , 10.11 ]; _i = 0;

case 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

Change From ->

try

try

Change From ->

for (let v of [ 10.8 , 10.9 , 10.10 , 10.11 ]) }

for (let v of [ 10.8 , 10.9 , 10.10 , 10.11 , 10.12 ]) }

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

Change From ->

case 10: _arr = [ 10.8 , 10.9 , 10.10 , 10.11 ]; _i = 0;

case 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

Change From ->

try

try

Change From ->

for (let v of [ 10.8 , 10.9 , 10.10 , 10.11 ]) }

for (let v of [ 10.8 , 10.9 , 10.10 , 10.11 , 10.12 ]) }

Click start the stethoscope button

it‘s over~~

上一篇:何小偉:App接口測試?

下一篇:何小偉:移動App專項測試

by 古北水鎮

最後更新:2017-10-08 04:51:51

  上一篇:go Umwelt macht Schule“Ausgezeichnet denken,forschen,handeln
  下一篇:go 何小偉:Mac配置maven環境