每次我在 Xcode 8 中运行单元测试时都会收到此错误消息
Validation for xctestrun file failed:
(
"For these test runs, UITargetAppPath should be provided"
)
最佳答案
转到项目设置中的每个测试目标(例如 MyProjectTests 和 MyProjectUITests),然后为“目标应用程序”下拉菜单选择“无”。 然后为相同的目标重新选择您的目标应用程序。 这应该会重置测试目标并使 XCode 不那么困惑。
关于ios - Xcode 8 中的单元测试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39589409/