• 支持支持

  • 支持

  • 深圳见

  • 大会见,打卡

  • 打卡 +1

  • 打卡打卡 1

  • 滴,萨瓦迪卡!

  • 打卡


  • 使用 7.3 版本录制时,报上面的错误,并且网址也打不开

  • 我试试,还是一样的问题

  • @leyili1988 我也遇到了这个问题,请问问题解决了吗?如何解决的?

  • @adfghzhang 看了你的帖子,我用真机测试时,日志都打印到 macaca server --verbose 的窗口,没的打印到 macaca server -p 4725 --verbose macaca server -p 4726 --verbose2 个窗口,请教一下,这个需要在案例脚本中有什么设置吗?

  • 成为 Macaca 项目贡献者 at 2018年02月26日

    server.js:16:12 [master] pid:1184 server start with config:
    { port: 5678,
    verbose: true,
    udid: '9963d01d',
    ip: '192.168.179.1',
    host: 'DESKTOP-IC7GM4G',
    loaded_time: '2018-02-26 17:22:18' }
    app-inspector.js:43:12 [master] pid:1184 server start at: http://192.168.179.1:5678
    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: numtests=1
    INSTRUMENTATION_STATUS: stream=
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: 1

    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: stream=
    UIAutomatorWD->http://localhost:9001<-UIAutomatorWD
    INSTRUMENTATION_STATUS_CODE: 0

    UIAutomatorWD http server ready
    Android device started: 9963d01d
    inspector start at: http://192.168.179.1:5678
    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: numtests=1
    INSTRUMENTATION_STATUS: stream=
    Error in MacacaTestRunner(com.macaca.android.testing.UIAutomatorWD):
    com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: stack=com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: -2
    INSTRUMENTATION_RESULT: stream=

    Time: 0.067
    There was 1 failure:
    1) MacacaTestRunner(com.macaca.android.testing.UIAutomatorWD)
    com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    FAILURES!!!
    Tests run: 1, Failures: 1

    INSTRUMENTATION_CODE: -1

  • Macaca App Inspector 2.0 发布 at 2018年02月26日

    app-inspector -u XXX --verbose 报错,打不开对象识别页面,报错信息:

    server.js:16:12 [master] pid:1184 server start with config:
    { port: 5678,
    verbose: true,
    udid: '9963d01d',
    ip: '192.168.179.1',
    host: 'DESKTOP-IC7GM4G',
    loaded_time: '2018-02-26 17:22:18' }
    app-inspector.js:43:12 [master] pid:1184 server start at: http://192.168.179.1:5678
    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: numtests=1
    INSTRUMENTATION_STATUS: stream=
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: 1

    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: stream=
    UIAutomatorWD->http://localhost:9001<-UIAutomatorWD
    INSTRUMENTATION_STATUS_CODE: 0

    UIAutomatorWD http server ready
    Android device started: 9963d01d
    inspector start at: http://192.168.179.1:5678
    uiautomator-client.js:62:14 [master] pid:1184 INSTRUMENTATION_STATUS: numtests=1
    INSTRUMENTATION_STATUS: stream=
    Error in MacacaTestRunner(com.macaca.android.testing.UIAutomatorWD):
    com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: stack=com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: -2
    INSTRUMENTATION_RESULT: stream=

    Time: 0.067
    There was 1 failure:
    1) MacacaTestRunner(com.macaca.android.testing.UIAutomatorWD)
    com.alibaba.fastjson.JSONException: syntax error, expect [, actual undefined, pos 0
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1103)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1090)
    at com.alibaba.fastjson.JSON.parseArray(JSON.java:487)
    at com.macaca.android.testing.UIAutomatorWD.MacacaTestRunner(UIAutomatorWD.java:34)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

    FAILURES!!!
    Tests run: 1, Failures: 1

    INSTRUMENTATION_CODE: -1

  • macaca doctor 信息:
    More information: https://macacajs.github.io/changelog.html

    macaca-doctor version: 2.0.5

    Node.js checklist:

    node env: D:\nodejs\node.exe
    node version: v6.10.2 lower than v8.9.2

    Android checklist:

    JAVA version is 1.8.0_131
    JAVA_HOME is set to D:\Java\jdk1.8.0_131
    ANDROID_HOME is set to D:\android-sdk-windows
    Platforms is set to D:\android-sdk-windows\platforms\android-26
    ADB tool is set to D:\android-sdk-windows\platform-tools\adb.exe
    GRADLE_HOME is set to C:\Gradle\gradle-3.5

    Installed driver list:

    android: 2.0.46
    chrome: 1.0.7

  • Macaca App Inspector 2.0 发布 at 2017年06月20日

    解决了,可以查看对象

  • Macaca App Inspector 2.0 发布 at 2017年06月19日

    使用 xcode 编辑好信息后,不用 xcode 构建,使用命令,可以构建成功,命令:
    xcodebuild -project XCTestWD.xcodeproj \
    -scheme XCTestWDUITests \
    -destination 'platform=iOS,name=(设备名称,例如:iPhone6)' \
    XCTESTWD_PORT=8001 \
    clean test

    构建成功后,运行 app-inspecotr,遇到:Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" 错误,日志如下:

    xctest-client.js:173:14 [master] pid:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
    state->old_bundle: /var/folders/fb/vqg8m_xd13902672dtrvw1jh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/b9f87b95bff57093271c0edbc9857746/cbf57ea4f5a49ff38eeda6c52df395e882580b7c/XCTestWDUITests-Runner.app
    state->new_bundle: /Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-ccvxdwxqeiiwoaaqndjnsjrgtcql/Build/Products/Debug-iphoneos/XCTestWDUITests-Runner.app
    state->dst_bundle: /var/folders/fb/vqg8m_xd13902672dtrvw1jh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.8p1uxM/XCTestWDUITests-Runner.app_sparse.ipa/Payload//XCTestWDUITests-Runner.app, binaryDiff flag: FALSE
    dst_ipa: /var/folders/fb/vqg8m_xd13902672dtrvw1jh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.8p1uxM/XCTestWDUITests-Runner.app_sparse.ipa

    xctest-client.js:173:14 [master] pid:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/fb/vqg8m_xd13902672dtrvw1jh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.8p1uxM/XCTestWDUITests-Runner.app_sparse.ipa/ManifestCache.plist

    xctest-client.js:173:14 [master] pid:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/fb/vqg8m_xd13902672dtrvw1jh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.8p1uxM/XCTestWDUITests-Runner.app_sparse.ipa/ManifestCache.plist

    xctest-client.js:173:14 [master] pid:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795 2017-06-19 14:40:33.121 xcodebuild[7801:248868] 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:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795
    Testing failed:

    xctest-client.js:173:14 [master] pid:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:7795 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:7795 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.0.37@xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:255:14 [master] pid:7795 killing deviceLogProc pid: 7798
    xctest-client.js:260:14 [master] pid:7795 killing runnerProc pid: 7801
    xctest-client.js:266:14 [master] pid:7795 killing iproxyProc pid: 7800
    xctest-client.js:183:14 [master] pid:7795 xctest client exit with code: 65, signal: null
    xctest-client.js:211:14 [master] pid:7795 iproxy exit with code: null, signal: SIGKILL
    xctest-client.js:145:16 [master] pid:7795 devicelog exit with code: null, signal: SIGKILL
    xctest-client.js:247:14 [master] pid:7795 Fail to start xctest: undefined
    undefined
    iOS device started: cbf57ea4f5a49ff38eeda6c52df395e882580b7c
    inspector start at: http://192.168.1.108:5678
    <-- GET /
    helper.js:94:16 [master] pid:7795 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

    Error: connect ECONNREFUSED 127.0.0.1:8001

    将手机重启后,再次运行 app-inspector ,👌

  • app-inspector 安装后,Xcode 编译有报错,

    这个问题还有遇到的?如何解决的?

  • Macaca App Inspector 2.0 发布 at 2017年06月19日

    @xdf 同问,也遇到了此问题,在 xcode 中设置过证书的,编译没错
    根据日志中的提示,运行/Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7F90C8321EF231B2003F2DA0.sh
    No devices are booted.
    请大神帮看下,谢谢

  • 成为 Macaca 项目贡献者 at 2017年06月19日

    上个版本安装时不是这样子
    running 正常时,要 stop 吗?还是需要一直运行 XCode?

    编辑/usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj 后
    运行 app-inspector -u XXX,浏览器 Internal Server Error

    xctest-client.js:173:14 [master] pid:6522 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:6522 2017-06-19 09:04:03.404 xcodebuild[6530:170827] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/031599E3-CC60-4261-92FE-8EC29A3EFD65/Session-XCTestWDUITests-2017-06-19_090359-xx5jjv.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/031599E3-CC60-4261-92FE-8EC29A3EFD65/Session-XCTestWDUITests-2017-06-19_090359-xx5jjv.log}

    xctest-client.js:173:14 [master] pid:6522 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:6522
    Testing failed:

    xctest-client.js:173:14 [master] pid:6522 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:172:14 [master] pid:6522 Command /bin/sh failed with exit code 162
    ** TEST FAILED **

    The following build commands failed:
    PhaseScriptExecution Run\ Script /Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7F90C8321EF231B2003F2DA0.sh
    (1 failure)

    xctest-client.js:173:14 [master] pid:6522 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
    xctest-client.js:255:14 [master] pid:6522 killing deviceLogProc pid: 6527
    xctest-client.js:260:14 [master] pid:6522 killing runnerProc pid: 6530
    xctest-client.js:266:14 [master] pid:6522 killing iproxyProc pid: 6529
    xctest-client.js:183:14 [master] pid:6522 xctest client exit with code: 65, signal: null
    xctest-client.js:211:14 [master] pid:6522 iproxy exit with code: null, signal: SIGKILL
    xctest-client.js:145:16 [master] pid:6522 devicelog exit with code: null, signal: SIGKILL
    xctest-client.js:247:14 [master] pid:6522 Fail to start xctest: undefined
    undefined
    iOS device started: cbf57ea4f5a49ff38eeda6c52df395e882580b7c
    inspector start at: http://192.168.1.108:5678
    <-- GET /
    helper.js:94:16 [master] pid:6522 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:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect as oncomplete

    dlxxdeMacBook-Pro:~ dlxx$ /Users/dlxx/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Build/Intermediates/XCTestWD.build/Debug-iphoneos/XCTestWDUITests.build/Script-7F90C8321EF231B2003F2DA0.sh
    No devices are booted.

  • 成为 Macaca 项目贡献者 at 2017年06月17日

    新安装的 app-inspector 2.0.5 版本后,xctestwd@1.0.37 的工程在 xcode8.3.2 版本中构建到 iphone6 时,一直在 running xctestwd on iphone 6,
    处于 debug 状态,
    不能构建完成后退出,重装多次也没有解决,team id,bundleid 都设置过,编译不报错,求大神帮看下

  • 参加一下