I also has this issue
mac os catalina,Xcode Version 12.3 (12C33) , iPhon11 14.2
my test code is easy
XCUIApplication *app = [[XCUIApplication alloc] init];
[app launch];
if I run test case with Xocode, I get error
failed to get automation session for com.xxxxxx.xxxx:0: Timed out while requesting automation session for com.xxxxxx.xxxx (pid:44238).
if I run with xcodebuild
xcodebuild	build-for-testing -project ${script_dir}/***.xcodeproj \scheme *** -destination	"platform=iOS,name=***" test -only-testing:***/***/testExample
I get
Failed to get automation session for com.xxxx:44179: Unable to communicate with helper. . Please retry the operation. If it fails, please exit and restart the application, and then try again。. connection on mach service named com.apple.dt.xctestd.target from pid 44179
but in iPhone7, 14.2 is OK,so any bug in iPhon11?