• 这个文章可以,哈哈

  • Macaca App Inspector 2.0 发布 at 2018年04月05日
  • 赞👍

  • 祝社区越来越好

  • 这个如果最后希望独立在手机上定时执行这个脚本怎么做呢?(不连接 PC)
    我试了 TashBomb,直接调用 Qpython,会导致 Qpython Crash。
    又尝试了 SL4A 和 Python for Android;
    但是 Python for Android 内置库没有 uiautomator2,
    即使我手动将 uiautomator 库 copy 到 Python for Android 下面对应的库路径,还是会报 Import Error。

  • Macaca App Inspector 2.0 发布 at 2018年01月15日

    没有找到Swifter插件,
    你可以手动进去看看插件编译成功没?
    最新版需要使用 Xcode 9 去编译,8 不行。

  • 手动点赞👏 👍

  • Macaca App Inspector 2.0 发布 at 2017年10月27日

    WebDriverAgent 搞不定,转投 XCTestWD 怀抱了😊

  • 第 2 点没懂呢?

  • 😍

  • 大哥,我解决了,呜呜呜~
    https://testerhome.com/topics/8820#reply47

  • Macaca App Inspector 2.0 发布 at 2017年07月28日

    折腾了几天,终于搞好了,呜呜呜~
    解决办法

  • 😟 关键是不能保证换电脑就能解决啊。

  • Macaca App Inspector 2.0 发布 at 2017年07月27日

    @xdf
    我这也有#45 楼同样的问题,
    Macaca Version:
    2.0.4

    Macaca Doctor Logs:
    macaca-doctor version: 2.0.1

    Node.js checklist:

    node env: /usr/local/bin/node
    node version: v7.7.1

    iOS checklist:

    Xcode Command Line Tools is ready, version: 2347.
    xcodebuild version: 8.3.2
    iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy
    ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
    carthage is installed, version: 0.24.0

    Android checklist:

    JAVA version is 1.8.0_121
    JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
    ANDROID_HOME is set to /Users/xiaoxue/Library/android-sdk-macosx
    Platforms is set to /Users/xiaoxue/Library/android-sdk-macosx/platforms/android-25
    ADB tool is set to /Users/xiaoxue/Library/android-sdk-macosx/platform-tools/adb
    gradle is installed, version: 3.5

    Installed driver list:

    android: 2.0.30
    chrome: 1.0.6
    electron: 1.1.7
    ios: 2.0.20

    Operate System:
    OSX 10.12.3

    macaca-ios 2.0.22 完全有问题,降级到 2.0.20 后,启动 app-inspector 连接真机,
    刚开始浏览器出现 “Waiting device start”,此时日志为:

    >> xctest-client.js:173:14 [master] pid:11683 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
      <-- GET /
      --> GET / 200
    >> xctest-client.js:172:14 [master] pid:11683 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/5a6ae50258fe0588d34604fc5261dbbd/e01d730b625c83ad877fb699701bc35ea3e800ec/ManifestCache.plist
    
    >> xctest-client.js:173:14 [master] pid:11683 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
      <-- GET /
      --> GET / 200
    

    再过一会,浏览器就显示 “Internal Server Error”

    >> xctest-client.js:172:14 [master] pid:11683 2017-07-27 19:23:16.512 xcodebuild[11689:124808] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
    
    >> xctest-client.js:173:14 [master] pid:11683 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    >> xctest-client.js:172:14 [master] pid:11683
    Testing failed:
    
    >> xctest-client.js:173:14 [master] pid:11683 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    >> xctest-client.js:172:14 [master] pid:11683   Test target XCTestWDUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
    ** TEST FAILED **
    
    
    >> xctest-client.js:173:14 [master] pid:11683 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    >> xctest-client.js:255:14 [master] pid:11683 killing deviceLogProc pid: 11686
    >> xctest-client.js:260:14 [master] pid:11683 killing runnerProc pid: 11689
    >> xctest-client.js:266:14 [master] pid:11683 killing iproxyProc pid: 11688
    >> xctest-client.js:183:14 [master] pid:11683 xctest client exit with code: 65, signal: null
    >> xctest-client.js:145:16 [master] pid:11683 devicelog exit with code: null, signal: SIGKILL
    >> xctest-client.js:247:14 [master] pid:11683 Fail to start xctest: undefined
    undefined
    >> iOS device started: e01d730b625c83ad877fb699701bc35ea3e800ec
    >> inspector start at: http://192.168.199.187:5678
    >> xctest-client.js:211:14 [master] pid:11683 iproxy exit with code: null, signal: SIGKILL
      <-- GET /
    >> helper.js:94:16 [master] pid:11683 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
    
      Error: connect ECONNREFUSED 127.0.0.1:8001
          at Object.exports._errnoException (util.js:1029:11)
          at exports._exceptionWithHostPort (util.js:1052:20)
          at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
    
      <-- GET /
    >> helper.js:94:16 [master] pid:11683 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
    
      Error: connect ECONNREFUSED 127.0.0.1:8001
          at Object.exports._errnoException (util.js:1029:11)
          at exports._exceptionWithHostPort (util.js:1052:20)
          at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
    
  • 这个我最早就试过用个人证书,也更改了 BundleID,没效果。
    后来我又更换成企业证书,也改了 BundleID,还是没效果。
    今天把 Xcode 升级到 8.3.3,也还是一样的错误。
    我用 macaca 的 XCTestWD,还是这个问题,绕不过去的坎,心塞。😖

  • 没解决,暂时搁置了😞

  • 试过了,重启 Mac 和 iPhone 都无效啊😭

  • @harsayer ,求帮忙🙏
    补充信息如下:
    虚拟机里可以跑成功,真机不行。

    跑模拟器 Xcode Debug 的 log:

    2017-04-06 13:47:40.352 XCTRunner[4833:113945] Running tests...
    2017-04-06 13:47:48.499 XCTRunner[4833:113945] Continuing to run tests in the background with task ID 1
    Test Suite 'All tests' started at 2017-04-06 13:47:48.672
    Test Suite 'WebDriverAgentLib.framework' started at 2017-04-06 13:47:48.674
    Test Suite 'WebDriverAgentLib.framework' passed at 2017-04-06 13:47:48.674.
         Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
    Test Suite 'WebDriverAgentRunner.xctest' started at 2017-04-06 13:47:48.676
    Test Suite 'UITestingUITests' started at 2017-04-06 13:47:48.677
    Test Case '-[UITestingUITests testRunner]' started.
        t =     0.00s     Start Test at 2017-04-06 13:47:48.678
        t =     0.00s     Set Up
    2017-04-06 13:47:48.685 XCTRunner[4833:113945] Built at Apr  6 2017 11:53:41
    2017-04-06 13:47:48.705 XCTRunner[4833:113945] ServerURLHere->http://192.168.199.187:8100<-ServerURLHere
        t =    47.95s     Find the Application "local.pid.4769" 0x6080002a69c0
        t =    47.95s         Snapshot accessibility hierarchy for local.pid.4769
    

    本地访问 server 后返回:

    {
      "value" : "Unhandled endpoint: \/ -- http:\/\/192.168.199.187:8100\/ with parameters {\n    wildcards =     (\n        \"\"\n    );\n}",
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 1
    }
    

    本地访问 status 返回:

    {
      "value" : {
        "state" : "success",
        "os" : {
          "name" : "iOS",
          "version" : "10.3"
        },
        "ios" : {
          "simulatorVersion" : "10.3",
          "ip" : "192.168.199.187"
        },
        "build" : {
          "time" : "Apr  6 2017 11:53:42"
        }
      },
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 0
    }
    

    本地访问 inspector 截图:

    跑真机时 Xcode Debug 的 Log:

    dyld: Library not loaded: @rpath/XCTest.framework/XCTest
      Referenced from: /var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/XCTRunner
      Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
    (lldb) 
    

    试过很多方法,现在怀疑是 Xcode 的问题
    虽然我的 Xcode 从 8.2.1 升级到了 8.3,iOS 从 10.0.2 升级到了 10.3 和 10.3.1,但都没有解决:(
    https://github.com/facebook/WebDriverAgent/issues/429
    https://github.com/facebook/WebDriverAgent/issues/521

    现在我该怎么办?

  • 虚拟机里可以跑成功,真机不行。

    跑模拟器 Xcode Debug 的 log:

    2017-04-06 13:47:40.352 XCTRunner[4833:113945] Running tests...
    2017-04-06 13:47:48.499 XCTRunner[4833:113945] Continuing to run tests in the background with task ID 1
    Test Suite 'All tests' started at 2017-04-06 13:47:48.672
    Test Suite 'WebDriverAgentLib.framework' started at 2017-04-06 13:47:48.674
    Test Suite 'WebDriverAgentLib.framework' passed at 2017-04-06 13:47:48.674.
         Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
    Test Suite 'WebDriverAgentRunner.xctest' started at 2017-04-06 13:47:48.676
    Test Suite 'UITestingUITests' started at 2017-04-06 13:47:48.677
    Test Case '-[UITestingUITests testRunner]' started.
        t =     0.00s     Start Test at 2017-04-06 13:47:48.678
        t =     0.00s     Set Up
    2017-04-06 13:47:48.685 XCTRunner[4833:113945] Built at Apr  6 2017 11:53:41
    2017-04-06 13:47:48.705 XCTRunner[4833:113945] ServerURLHere->http://192.168.199.187:8100<-ServerURLHere
        t =    47.95s     Find the Application "local.pid.4769" 0x6080002a69c0
        t =    47.95s         Snapshot accessibility hierarchy for local.pid.4769
    

    本地访问 server 后返回:

    {
      "value" : "Unhandled endpoint: \/ -- http:\/\/192.168.199.187:8100\/ with parameters {\n    wildcards =     (\n        \"\"\n    );\n}",
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 1
    }
    

    本地访问 status 返回:

    {
      "value" : {
        "state" : "success",
        "os" : {
          "name" : "iOS",
          "version" : "10.3"
        },
        "ios" : {
          "simulatorVersion" : "10.3",
          "ip" : "192.168.199.187"
        },
        "build" : {
          "time" : "Apr  6 2017 11:53:42"
        }
      },
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 0
    }
    

    本地访问 inspector 截图:

    跑真机时 Xcode Debug 的 Log:

    dyld: Library not loaded: @rpath/XCTest.framework/XCTest
      Referenced from: /var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/XCTRunner
      Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
    (lldb) 
    

    试过很多方法,现在怀疑是 Xcode 的问题
    虽然我的 Xcode 从 8.2.1 升级到了 8.3,iOS 从 10.0.2 升级到了 10.3 和 10.3.1,但都没有解决:(
    https://github.com/facebook/WebDriverAgent/issues/429
    https://github.com/facebook/WebDriverAgent/issues/521

    现在我该怎么办?

  • 虚拟机里可以跑成功,真机不行。

    跑模拟器 Xcode Debug 的 log:

    2017-04-06 13:47:40.352 XCTRunner[4833:113945] Running tests...
    2017-04-06 13:47:48.499 XCTRunner[4833:113945] Continuing to run tests in the background with task ID 1
    Test Suite 'All tests' started at 2017-04-06 13:47:48.672
    Test Suite 'WebDriverAgentLib.framework' started at 2017-04-06 13:47:48.674
    Test Suite 'WebDriverAgentLib.framework' passed at 2017-04-06 13:47:48.674.
         Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
    Test Suite 'WebDriverAgentRunner.xctest' started at 2017-04-06 13:47:48.676
    Test Suite 'UITestingUITests' started at 2017-04-06 13:47:48.677
    Test Case '-[UITestingUITests testRunner]' started.
        t =     0.00s     Start Test at 2017-04-06 13:47:48.678
        t =     0.00s     Set Up
    2017-04-06 13:47:48.685 XCTRunner[4833:113945] Built at Apr  6 2017 11:53:41
    2017-04-06 13:47:48.705 XCTRunner[4833:113945] ServerURLHere->http://192.168.199.187:8100<-ServerURLHere
        t =    47.95s     Find the Application "local.pid.4769" 0x6080002a69c0
        t =    47.95s         Snapshot accessibility hierarchy for local.pid.4769
    

    本地访问 server 后返回:

    {
      "value" : "Unhandled endpoint: \/ -- http:\/\/192.168.199.187:8100\/ with parameters {\n    wildcards =     (\n        \"\"\n    );\n}",
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 1
    }
    

    本地访问 status 返回:

    {
      "value" : {
        "state" : "success",
        "os" : {
          "name" : "iOS",
          "version" : "10.3"
        },
        "ios" : {
          "simulatorVersion" : "10.3",
          "ip" : "192.168.199.187"
        },
        "build" : {
          "time" : "Apr  6 2017 11:53:42"
        }
      },
      "sessionId" : "41A81AA0-6090-4419-9D81-C1EFA27ACD59",
      "status" : 0
    }
    

    本地访问 inspector 截图:

    跑真机时 Xcode Debug 的 Log:

    dyld: Library not loaded: @rpath/XCTest.framework/XCTest
      Referenced from: /var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/XCTRunner
      Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
        /private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/67D95C0C-0253-4654-A88B-1C646458E939/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
    (lldb) 
    

    试过很多方法,现在怀疑是 Xcode 的问题
    虽然我的 Xcode 从 8.2.1 升级到了 8.3,iOS 从 10.0.2 升级到了 10.3 和 10.3.1,但都没有解决:(
    https://github.com/facebook/WebDriverAgent/issues/429
    https://github.com/facebook/WebDriverAgent/issues/521

    现在我该怎么办?

  • @harsayer 您好,我遇到一个 app-inspector 无法正常工作的问题,
    Log 可详参https://testerhome.com/topics/5808 #104 楼
    可以帮忙看看吗,谢谢!

  • 求助,我的 appium1.6.4-beta 和 app-inspector 都遇到了这个问题,按#75 楼的方法没解决。
    @u1449475793 @lynn_qin
    环境:
    Xcode:8.3
    OSX:10.12.3
    iPhone:10.3
    npm:4.1.2
    node: 7.7.1
    app-inspector: 1.2.23
    appium:1.6.4-beta
    我更新了 DEVELOPMENT_TEAM_ID 且参考 https://testerhome.com/topics/6507https://github.com/appium/appium/issues/7066 都没有解决。

    Macbook $ app-inspector -u e01d730b625c83ad877fb699701bc35ea3e800ec --verbose
    >> server.js:16:12 [master] pid:15055 server start with config:
     { port: 5678,
      verbose: true,
      udid: 'e01d730b625c83ad877fb699701bc35ea3e800ec',
      ip: '192.168.199.187',
      host: 'Macbook-Air.local',
      loaded_time: '2017-04-05 16:11:59' }
    >> app-inspector.js:42:10 [master] pid:15055 server start at: http://192.168.199.187:5678
    >> xctest-client.js:56:14 [master] pid:15055 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client start with port: 8900
    >> xctest-client.js:233:14 [master] pid:15055 xcode version: 8.3
    >> WebDriverAgent version: 1.1.4
    >> xctest-client.js:170:14 [master] pid:15055 2017-04-05 16:12:00.966 xcodebuild[15061:180065]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
    /Users/xiaoxue/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/C8410ABE-7B7D-4BC9-9C2B-164C8FC8BF93/Session-WebDriverAgentRunner-2017-04-05_161200-jXjtOI.log
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 2017-04-05 16:12:00.966 xcodebuild[15061:180059] [MT] IDETestOperationsObserverDebug: (0B81C369-7C6E-418B-B384-10B7618E1E72) Beginning test session WebDriverAgentRunner-0B81C369-7C6E-418B-B384-10B7618E1E72 at 2017-04-05 16:12:00.966 with Xcode 8E162 on target <DVTiOSDevice: 0x7fa024135640> {
            deviceSerialNumber:         F18PJBB1G5MQ
            identifier:                 e01d730b625c83ad877fb699701bc35ea3e800ec
            deviceClass:                iPhone
            deviceName:                 iPhone 6
            deviceIdentifier:           e01d730b625c83ad877fb699701bc35ea3e800ec
            productVersion:             10.3
            buildVersion:               14E277
            deviceSoftwareVersion:      10.3 (14E277)
            deviceArchitecture:         arm64
            deviceTotalCapacity:        12242530304
            deviceAvailableCapacity:    6803267584
            deviceIsTransient:          NO
            ignored:                    NO
            deviceIsBusy:               NO
            deviceIsActivated:          YES
            deviceActivationState:      Activated
            isPasscodeLocked:           NO
            deviceType:                 <DVTDeviceType:0x7fa023ba9a80 Xcode.DeviceType.iPhone>
            supportedDeviceFamilies:    (
        1
    )
            applications:              (null)
            provisioningProfiles:      (null)
            activityProgress:          -2
            activityTitle:
            hasInternalSupport:        NO
            isSupportedOS:             YES
            developerDiskMountError:   (null)
    (null)
        bootArgs:                  <unavailable>
            } (10.3 (14E277))
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
    state->old_bundle: /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/d1223d9c623a1a7f824cae92774bd47a/e01d730b625c83ad877fb699701bc35ea3e800ec/WebDriverAgentRunner-Runner.app
    state->new_bundle: /Users/xiaoxue/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
    state->dst_bundle: /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.Hj9Hh6/WebDriverAgentRunner-Runner.app_sparse.ipa/Payload//WebDriverAgentRunner-Runner.app, binaryDiff flag: FALSE
        dst_ipa: /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.Hj9Hh6/WebDriverAgentRunner-Runner.app_sparse.ipa
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.Hj9Hh6/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/f3/fsxd3f315vg22yc0997bxrl00000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.Hj9Hh6/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 2017-04-05 16:12:08.004 xcodebuild[15061:180059] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055
    Testing failed:
        Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:170:14 [master] pid:15055 ** TEST FAILED **
    
    
    >> xctest-client.js:171:14 [master] pid:15055 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
    >> xctest-client.js:265:14 [master] pid:15055 killing deviceLogProc pid: 15058
    >> xctest-client.js:270:14 [master] pid:15055 killing runnerProc pid: 15061
    >> xctest-client.js:276:14 [master] pid:15055 killing iproxyProc pid: 15060
    >> xctest-client.js:181:14 [master] pid:15055 xctest client exit with code: 65, signal: null
    >> xctest-client.js:145:16 [master] pid:15055 deviceconsole exit with code: null, signal: SIGKILL
    >> xctest-client.js:257:14 [master] pid:15055 Fail to start xctest: undefined
    >> app-inspector:66:44 [master] pid:15055 undefined
    (node:15055) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:15055 undefined
    (node:15055) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    >> xctest-client.js:209:14 [master] pid:15055 iproxy exit with code: null, signal: SIGKILL
    
  • 一看就是个卖萌妹子的路线啊

  • 谢谢!
    #222 楼的 log 也是正常的么?
    我找了很多资料,最后看到https://github.com/facebook/WebDriverAgent/issues/429上面说是 Xcode 的问题。
    我的环境:
    OSX:10.12.3
    Xcode:8.2.1
    iPhone:10.0.2
    appium:1.6.3 或 1.6.4 或 appium-Desktop1.0.0@beta3

    无论是 Xcode,还是 XcodeBuildTools,或者是重启 Mac 和 iPhone,都不行