This problem exists because Appium is incompatible with the latest version of mac10.12.
Since 10.12 is the latest Mac version, appium1.5.3 does not provide support, so:
In terminal input GREP-RL "Could not detect Mac OS X version from Sw_vers output:"/applications/appium.app/Locate the contained file and modify the version number.
Through the above command can see the following 4 files need to modify the version number, plus ' 10.12 ', some data need to remove the following space, plus trim () function, if you do not enter a space, do not use this function, I do not add this function:
yuancandemacbook-pro:~ yuancan$ grep-rl "Could not detect Mac OS X Version from sw_vers output:"/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
Here's how to modify it:
Http://stackoverflow.com/questions/40129794/how-to-fix-error-could-not-detect-mac-os-x-version-from-sw-vers-output-10-12
To summarize, just enter the command in the terminal, find the location of the file location, and add ' 10.12 ' after the corresponding version number
Appium Beginner, use it to check Appium environment error could not detect Mac OS X Version from sw_vers output: ' 10.12.1 ',