Xcodebuild test fail when trigger from jenkins.

Hi.
I have use xcodebuild to do some UT testing. It works fine.

xcodebuild test -workspace "zzz" -scheme "aaa" -destination "platform=macOS,arch=x86_64" -only-testing "***" -resultBundlePath "yyy"

But when I trigger this command from jenkins. It will output below errors, I do not how to fix this issue, Please give some suggestions. Thanks.

Underlying Error: Couldn’t communicate with a helper application. Try your operation again. If that fails, quit and relaunch the application and try again. The connection to service on pid 0 named com.apple.testmanagerd.control was invalidated.))

PS. I found this link https://stackoverflow.com/questions/67688130/run-macos-test-cases-on-the-jenkins-pipeline, our jenkins build is already use JNLP authentication. but still have this problem.

I'm facing same issue

Xcodebuild test fail when trigger from jenkins.
 
 
Q