• 你是不是没有设置 app,使用的是 appActivity,appPackage 这种方式启动的吗?我也遇到这个问题了。改成用 app 的试,就可以解决这个问题了。

  • 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

  • 自己改一下脚本就可能 测试通过了。

    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