Xcode Cloud fails to install/launch macOS test runner

When running a SwiftUI Multiplatform app in Xcode Cloud I'm getting the following error:

CIWatcher encountered an error in CIWatcherTests failed with: Failed to install or launch the test runner. (Underlying Error: Could not launch “CIWatcherTests”. Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed)))

This runs fine on iOS and all those tests pass.

The SwiftUI app on Mac is a menu bar app so I'm not sure if this could be the issue as it's not launching for some reason on the Xcode Cloud system? Maybe I need to add some run option to make this work?

When run locally both iOS and macOS pass all the tests successfully

I'm seeing the same issue (same error message) on my Xcode Cloud macOS test run. iOS also isn't working though, with a different error message:

[AppName] (3484) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal ill before starting test execution.))

@DTS Engineer Dear Apple, kindly bump this issue. Xcode Cloud Test action always fail with the same error - " App Name (7274) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal ill before starting test execution.)) "

I'm getting this same issue. build-for-testing seems to be working fine, but test-without-building experiences the error mentioned above. Logs are attached.

Came over here from https://forums.developer.apple.com/forums/thread/725660?page=1#810351022, which is what's happening on iOS.

I was able to work around this issue by setting the Host Application to "None" for my test scheme. This stops Xcode Cloud from attempting to start up the application binary.

Xcode Cloud fails to install/launch macOS test runner
 
 
Q