I got the same error and I solved it by following these steps:
1) Go to the project
2) In the left panel (on the screen that appears, click "Tests"
3) Go to the build settings tab and find the "test host"
4) Now the path that appears in the field is probably incorrect, so you just need to update it to the appropriate one (in my specific case, I renamed the project and some folders, and therefore some paths were incorrect) 
If you still see the error, you may need to fix some other paths on the build settings tabs.
source share