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?