Unit Test fails in Xcode 8

2019-04-03 07:27发布

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

2条回答
叼着烟拽天下
2楼-- · 2019-04-03 08:10

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.

查看更多
狗以群分
3楼-- · 2019-04-03 08:22

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

查看更多
登录 后发表回答