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
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.
/usr/local/bin/idevicediagnostics restart
Hope this helps