Xcode 9 - Test target X encountered an error (Unable to connect to Test Manager)

柔情痞子 提交于 2020-12-29 08:59:21

问题


I'm trying to run some of my Unit Tests but it kept giving me error:

Showing Recent Issues
Test target X encountered an error (Unable to connect to test manager on d7306c4130298fbc17bc0985ec02f808dcdc1374 If you believe this error represents a bug, please attach the log file at /var/folders/2h/0y4yjs6s7l307mbr6pk1xdl00000gn/T/com.apple.dt.XCTest/IDETestRunSession-CF80FA05-C8ED-4FCE-A04B-4A8070F21059/X-E8F39B10-0CDC-43D5-9BED-CD2D0F6081DA/Session-X-2018-01-08_161733-D3YlRc.log)

I've tried searching for this type of error but to no avail. Anybody got any ideas?


回答1:


Simply restarting the device fixed this for me (iOS 11.3)




回答2:


I resolved this issue by doing a hard restart of my device. For my iPhone 8, I followed these instructions from macrumors.com: Hard restart iPhone 8

Alternatively, if you're an libimobiledevice user you can use /usr/local/bin/idevicediagnostics restart from your mac's terminal.

Hope this helps




回答3:


I restarted my iPhone 6 (iOS 11.2.6) in a normal way to resolve the same issue.



来源:https://stackoverflow.com/questions/48158225/xcode-9-test-target-x-encountered-an-error-unable-to-connect-to-test-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!