How to set host application for XCTest?

Hi, when I use xctest_add_bundle to add a XCTest in XCode, the host application is not set. But the host application is needed to run the tests.

Since we want to cmake, build and run test in CI/CD pipeline, we can’t open XCode to set the host application. Is there anyway to set the host application in cmake?