Xcode UI Testing: Cannot find test application containing test bundle

I wrote UI Tests in Xcode 7.3.1 for a dedicated purpose. I can write a UI test, but if I try to run it (all tests or one), I got the following error:

Unable to find a test run application containing the test pool path / Users / dle / Library / Developer / Xcode / DerivedData / Keecoach -exynmciqyehgmxcfxhkpksrqifsb / Build / Products / Debug-iphonesimulator / DemoKeecoachUITests-Runner.appoKKIcoachUITests-Runner.appoKppInsKITIKKIcoachUITests-Runner.

Error in Xcode

I really don't understand the message, except that the runner application appears to run the tests, and that the runner application does not exist. This DemoKeecoachUITests-Runner.app does not actually exist on my disk.

I cannot find anyone who mentions the problem anywhere ... I get the same error if I run tests on the command line using xctool . I have the same problem on other computers, but I have no problem with another project, so it is related to the project. Any clue?

+5
source share
1 answer

Found!

Due to the build setup of the Wrapper Extension . It was installed in the app for the project and therefore inherited for every purpose. I switched it to nothing for the project, app for the target application, and xctest for testing purposes.

Now the generated binaries for ABCTests.xctest tests, not ABCTests.app anymore. It probably took so long, but I don’t know for what reason ...

+8
source

All Articles