0

当我在 Xcode GUI 中运行单元测试时,我收到此警告

Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set).

在此处输入图像描述

Xcode 不执行我的单元测试,但我收到测试成功的消息。看起来它只是跳过了我的测试。

PS 我知道很多人在从命令行运行单元测试时会遇到这个错误,但这发生在 Xcode GUI 中

4

1 回答 1

1

Xcode 无法运行应用程序托管的单元测试。

开发人员站点有解决方法:http: //developer.apple.com/library/ios/#documentation/developertools/Conceptual/UnitTesting/02-Setting_Up_Unit_Tests_in_a_Project/setting_up.html

于 2013-02-04T10:47:23.503 回答