We have a project using mainly SwiftUI for which I started developing UI automated tests using XCTest. The problem is that when I run tests, they don't always launch. Simulator is not opened or status of the test updated. It just shows the Test succeeded alert and 'Test completed' in the upper status bar, without anything actually happening. Tried several steps that sometimes work, sometimes they don't, but might give an idea what could be going wrong:
- clean project
- delete derived data
- reset packages caches
- update to latest packages versions
- delete UITests scheme and target and put them back
- start running of tests while Xcode is set to another scheme and switch to the UI tests one from the alert that pops up