[英]Unit Test fails in Xcode 8
I get this error message every time I run my unit tests in Xcode 8 每次在Xcode 8中运行单元测试时,都会收到此错误消息
Validation for xctestrun file failed:
(
"For these test runs, UITargetAppPath should be provided"
)
Go to each of your test targets (eg MyProjectTests and MyProjectUITests) in the project settings and select "None" for the "Target Application" dropdown. 在项目设置中转到每个测试目标(例如MyProjectTests和MyProjectUITests),并为“目标应用程序”下拉列表选择“无”。 Then reselect your Target Application back for the same targets.
然后重新选择目标应用程序以获取相同的目标。 This should reset the test targets and make XCode less confused.
这应该重置测试目标并使XCode更少混淆。
关闭你的Xcode并再次打开它与我合作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.