Unit Test fails in Xcode 8

IosObjective CXcodeXcode8

Ios Problem Overview


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"
)

Ios Solutions


Solution 1 - Ios

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.

Solution 2 - Ios

close your Xcode and open it again it's working with me

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGyroCocoaView Question on Stackoverflow
Solution 1 - IosyurgisView Answer on Stackoverflow
Solution 2 - IosAbdulrahman MasoudView Answer on Stackoverflow