阅读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环境