wumai 发表于 2016-1-2 08:42:23

os x升级到10.10后appium不能测试通过的解决办法

  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 {
this.log.fail("Could not detect Mac OS X Version", cb);
}
} else {
this.log.fail("Unknown SW Version Command: " + err, cb);
}
}.bind(this));
};
  
  修改下这个文件,加入10.10版本即可
  /usr/local/lib/node_modules/appium/lib/doctor/ios.js
页: [1]
查看完整版本: os x升级到10.10后appium不能测试通过的解决办法