Macaca iOS正常执行第一个用例后第二个用例开始报Error: socket hang up
第一个用例执行正常,执行第二个用例时就会报socket hang up
日志如下:
xctest-client.js:173:14 [master] pid:6207 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:172:14 [master] pid:6207 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/q4/2skydwf51sv1g0l4ht4rtnvh0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/XCTestWD.app.ZRKDcI/XCTestWD.app_sparse.ipa/ManifestCache.plist
xctest-client.js:173:14 [master] pid:6207 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj proxy.js:55:14 [master] pid:6207 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"********","platformName":"ios"}} proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up proxy.js:61:22 [master] pid:6207 xctest client proxy error with: Error: socket hang up xctest-client.js:247:14 [master] pid:6207 Fail to start xctest: Error: socket hang up xctest-client.js:255:14 [master] pid:6207 killing deviceLogProc pid: 6506 xctest-client.js:260:14 [master] pid:6207 killing runnerProc pid: 6509 xctest-client.js:266:14 [master] pid:6207 killing iproxyProc pid: 6508 xctest-client.js:145:16 [master] pid:6207 devicelog exit with code: null, signal: SIGKILL xctest-client.js:211:14 [master] pid:6207 iproxy exit with code: null, signal: SIGKILL xctest-client.js:183:14 [master] pid:6207 xctest client exit with code: null, signal: SIGKILL macaca-ios.js:163:12 [master] pid:6207 Trying to start xctestwd server... BundleId XCTestWD.XCTestWD does not exist. xctestwd start with port: 8001
macaca doctor: macaca-doctor version: 2.0.1
Node.js checklist:
node env: /usr/local/bin/node node version: v8.1.2
iOS checklist:
Xcode Command Line Tools is ready, version: 2347.
xcodebuild version: 8.3.3
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.23.0
Android checklist:
JAVA version is 1.8.0_111
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
ANDROID_HOME is not set
Command Line Tools: gradle is uninstalled
Installed driver list:
ios: 2.0.18