今天刚安装的,进行到这里没法继续下去了……
当前的版本- OS X 10.10
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 {
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
#1 楼 @lihuazhang 非常感谢! 还没看过相关的源码。大概什么时候能支持? 系统没法降级。。。
我也想知道。。。不该手贱升级~~(>_<)~~
自己改一下脚本就可能 测试通过了。
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));
};
/usr/local/lib/node_modules/appium/lib/doctor/ios.js
Running iOS Checks
✔ Xcode is installed at /Applications/Xcode.app/Contents/Developer
✔ Xcode Command Line Tools are installed.
✔ DevToolsSecurity is enabled.
✔ The Authorization DB is set up properly.
✔ Node binary found at /usr/local/bin/node
✔ iOS Checks were successful.
Running Android Checks
✔ ANDROID_HOME is set to "/Users/yivanus/android-sdk-macosx"
✔ JAVA_HOME is set to "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home."
✔ ADB exists at /Users/yivanus/android-sdk-macosx/platform-tools/adb
✔ Android exists at /Users/yivanus/android-sdk-macosx/tools/android
✔ Emulator exists at /Users/yivanus/android-sdk-macosx/tools/emulator
✔ Android Checks were successful.
✔ All Checks were successful
运行 appium doctor,还是提示这个