Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit Test fails in Xcode 8

I get this error message every time I run my unit tests in Xcode 8

Validation for xctestrun file failed: (     "For these test runs, UITargetAppPath should be provided" ) 
like image 745
GyroCocoa Avatar asked Sep 20 '16 08:09

GyroCocoa


1 Answers

Go to each of your test targets (e.g. MyProjectTests and MyProjectUITests) in the project settings and select "None" for the "Target Application" dropdown. Then reselect your Target Application back for the same targets. This should reset the test targets and make XCode less confused.

like image 166
yurgis Avatar answered Sep 21 '22 22:09

yurgis