We have some UI Tests which open links in an external app (Safari). After verifying Safari is launched, the tests uses the “activate” method on XCUIApplication to return to the application and continue with the test. Starting with Xcode 12.5 the command often fails with an assertionFailure and a message "Application cannot be launched because it has outstanding termination assertion”.
We already attempted waiting for a given time, “manually” tapping the home button to return to the Springboard before calling “activate”, but none of these solutions seems to work.