在iphone设备上运行XCTest

dev*_*dev 6 xctest

我试图在iphone设备上运行XCTest,但Xcode显示正在关注消息.

"Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator." 
Run Code Online (Sandbox Code Playgroud)

有什么方法可以在设备上运行XCTest吗?

谢谢,开发

dev*_*dev 2

好的。我发现使用 GHUnit 我们可以在 iphone 设备上运行单元测试。它在内部使用 xctest。以下是设置GHUnit 的方法。

我能够按照说明使用 xcode 5 设置单元测试。