Macaca 安装 xcode8.3.3,并且成功给 xctestwd 签名,但是启动 app-inspector 时报错,启动不起来

隙开了一家店 · 2017年09月01日 · 最后由 testerking 回复于 2017年10月10日 · 2284 次阅读

xctest-client.js:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:178:14 [master] pid:3531 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
state->old_bundle: /var/folders/rs/np9grnx101l32r4tk8fbrk1h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/4adac26efa4c424de0c44c8f76371aaf/8dc4979f06a2e92245195bccd69ed10ab28ad091/XCTestWDUITests-Runner.app
state->new_bundle: /Users/test/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Build/Products/Debug-iphoneos/XCTestWDUITests-Runner.app
state->dst_bundle: /var/folders/rs/np9grnx101l32r4tk8fbrk1h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.0B6aCK/XCTestWDUITests-Runner.app_sparse.ipa/Payload//XCTestWDUITests-Runner.app, binaryDiff flag: FALSE
dst_ipa: /var/folders/rs/np9grnx101l32r4tk8fbrk1h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.0B6aCK/XCTestWDUITests-Runner.app_sparse.ipa

xctest-client.js:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:178:14 [master] pid:3531 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/rs/np9grnx101l32r4tk8fbrk1h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.0B6aCK/XCTestWDUITests-Runner.app_sparse.ipa/ManifestCache.plist
writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/rs/np9grnx101l32r4tk8fbrk1h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWDUITests-Runner.app.0B6aCK/XCTestWDUITests-Runner.app_sparse.ipa/ManifestCache.plist

xctest-client.js:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:178:14 [master] pid:3531 2017-09-01 16:05:26.178 xcodebuild[3535:368115] 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:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:178:14 [master] pid:3531
Testing failed:

xctest-client.js:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:178:14 [master] pid:3531 Test target XCTestWDUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **

xctest-client.js:179:14 [master] pid:3531 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:263:14 [master] pid:3531 killing deviceLogProc pid: 3534
xctest-client.js:268:14 [master] pid:3531 killing runnerProc pid: 3535
xctest-client.js:189:14 [master] pid:3531 xctest client exit with code: 65, signal: null
xctest-client.js:150:16 [master] pid:3531 devicelog exit with code: null, signal: SIGKILL
xctest-client.js:255:14 [master] pid:3531 Fail to start xctest: undefined
undefined
iOS device started: 8dc4979f06a2e92245195bccd69ed10ab28ad091
inspector start at: http://10.20.36.254:5678
<-- GET /
helper.js:94:16 [master] pid:3531 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

<-- GET /

helper.js:94:16 [master] pid:3531 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

共收到 5 条回复 时间 点赞

@xdf 大神帮忙看看问题,谢谢

@Lihuazhang @monkey 各位大神看过来

可以试一下:

  1. security -v unlock-keychain -p "这是登录用户的密码" ~/Library/Keychains/login.keychain
  2. 把你本地的 xxxxxx-Pro.local 放到 hosts 里面
xiaoshouzi 回复

第 2 点没懂呢?

xiaoshouzi 回复

是这个问题的解决方案吗

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册