Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Adding capability causes Xcode Cloud testing to fail

My app is approved for the Web Browser Public Key Credential Request managed capability and has it added to its App ID Configuration:

It has been added to my entitlements file:

I am able to build and run unit tests in Xcode locally using my managed profile.

When I push changes and Xcode Cloud tries to build and run the app, I get the following error:

Mirrai encountered an error (Failed to install or launch the test runner. (Underlying Error: Could not launch “MirraiTests”. 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))))

Removing just the com.apple.developer.web-browser.public-key-credential entitlement, with no other changes, results in all tests passing on Xcode Cloud.

Some thoughts:

In project settings, the test target has a different bundle id (appending Tests to the app bundle id). Under "Certificates, Identifiers & Profiles," the managed capability is added to the bundle id but it is an explicit bundle id and not a wildcard. Do I need to apply for the managed capability for the test bundle id as well? Or for a wildcard bundle id?

@retrograde

Does your issue still occur?

Yes I'm still getting the same error under the same conditions.

It also occurs when updating the test runners to Xcode 26 beta (17A5241e) and macOS 26 beta (25A5279m).

Adding capability causes Xcode Cloud testing to fail
 
 
Q