Xcode 8中的unit testing失败

每次在Xcode 8中运行unit testing时,都会收到此错误消息

Validation for xctestrun file failed: ( "For these test runs, UITargetAppPath should be provided" ) 

在项目设置中转到每个测试目标(例如MyProjectTests和MyProjectUITests),并为Host Application下拉列表选择“None”。 然后重新选择您的主机应用程序以获取相同的目标。 这应该重置测试目标并使XCode更少混淆。

关闭你的Xcode并再次打开它与我合作