Basic XCUItest failure

Just trying a quick UItest and it fails right away with:


NSInternalInconsistencyException", "No target application bundle id specified via test configuration: <XCTestConfiguration: 0x7f9182c2f190>


Any ideas?


-Owen

Replies

For a little more information, this does this on a default XCUITest, before I've added any code, and it happens in the line:


[[[XCUIApplication alloc] init] launch];

Open the general tab of the target editor for your UI test target. Is the "target application" pop-up set to an application target in the same project? If not, then that's probably your problem. If you cannot figure this out, please file a bug report - preferably with a project that can be use to reproduce the problem attached - so that we can take a look.

I had the same problem and I figured out the reason why it didn't work for me.


The reason was that I have resetted the Simulator before. After I installed the app on the Simulator, the error disappeared.