Is it possible to create an XCUITest target that is in a separate project from the project that contains the application to be tested?

I have to test multiple applications, and each application is in a different Xcode project. I want to create a single Xcode project that contains the XCUITests for all of the applications. Is there a way to do this?


Playing with the IDE a bit, it seems the tooling for setting up an XCUITest target wants to link the XCUITest target to a single application target that's in the same project (i.e. an XCUITest target cannot link to the application targets of any sub-projects).

Replies

let app = XCUIApplication(bundleIdentifier: "<Your Bundle Id>")

app.launch()