My appium doctor command doesn’t run. It has an error. Can anyone tell me how to fix appium doctor?
I am using Mac OS 10.12.4
Appium version: 1.3.4
Error: Appium Doctor Doesn’t Run and Displays Could Not Detect Mac OS X Version Error
I have tried by changing code in iOS.js as mentioned below:
IOSChecker.prototype.getMacOSXVersion = function (cb) {
exec(“sw_vers -productVersion”, function (err, stdout) {
if (err === null) {
if (stdout.match(‘10.8’) !== null) {
this.osVersion = ‘10.8’;
cb(null, “Mac OS X 10.8 is installed.”);
} else if (stdout.match(‘10.9’) !== null) {
this.osVersion = ‘10.9’;
cb(null, “Mac OS X 10.9 is installed.”);
} else if (stdout.match('10.10’) !== null) {
this.osVersion = '10.10’;
cb(null, “Mac OS X 10.10 is installed.”)
}else if (stdout.match('10.11’) !== null) {
this.osVersion = '10.11’;
cb(null, “Mac OS X 10.11 is installed.”)
}else if (stdout.match('10.12’) !== null) {
this.osVersion = '10.12’;
cb(null, “Mac OS X 10.12 is installed.”);
} else {
this.log.fail(“Could not detect Mac OS X Version”, cb);
}
} else {
this.log.fail("Unknown SW Version Command: " + err, cb);
}
}.bind(this));
But still not working. Could someone please help me asap. Also I have to use the same version of Appium and Mac OS.