每次在Xcode 8中运行我的单元测试时,我都会收到这个错误消息
Validation for xctestrun file failed:
(
"For these test runs, UITargetAppPath should be provided"
)
每次在Xcode 8中运行我的单元测试时,我都会收到这个错误消息
Validation for xctestrun file failed:
(
"For these test runs, UITargetAppPath should be provided"
)
在项目设置中,进入每个测试目标(例如MyProjectTests和MyProjectUITests),并选择“无”作为“目标应用程序”下拉菜单的选项。 然后重新选择相同目标的目标应用程序。 这样可以重置测试目标,并使XCode不那么困惑。
关闭你的Xcode,然后重新打开它,这对我有效。