永发信息网

appium ios 在处理命令时发生未知的服务器端错误怎么解决

答案:1  悬赏:0  手机版
解决时间 2021-04-07 00:24
  • 提问者网友:書生途
  • 2021-04-06 05:58
appium ios 在处理命令时发生未知的服务器端错误怎么解决
最佳答案
  • 五星知识达人网友:山君与见山
  • 2021-04-06 07:12
修改/usr/local/lib/node_modules/appium/lib/doctor/ios.js里面的内容,如下:
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.11’) !== null) {
this.osVersion = ‘10.11’;
cb(null, “Mac OS X 10.11 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));
};
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯