Can't run iOS unit or UI tests with Xcode Version 9.3 (9E145)

Since updating to Xcode 9.3, I can no longer run unit or UI tests on iOS apps. I've wiped Xcode and reinstalled it to no avail. To test it I created two new iOS projects from the single view template and included either unit or UI tests.


When I run the tests, the build succeeds and launches the tests. For the UI tests, the test-runner crashes with an assertion failure trying to load a UITestUITests.xctest plugin, for unit tests, the test fails without running any tests complaining “Unable to initialize test bundle from file:///Users/…/UnitTest.app/PlugIns/UnitTestTests.xctest/”.


These plugin files all exist.


Radar #39236687

Replies

Would those qualify as iOS framework unit tests?

FWIW, this appears to be a problem with the simulator or its configuration. The tests run correctly on a physical device. Perhaps there's some kind of cruft left over from installing the new Xcode on top of the old one, or there's some kind of file permissions problem.

Edit scheme -> Test -> press the + button and add the test (choose test targets to add to this scheme)