通过命令行运行我的单元测试时更新到 Xcode 4.5 后出现问题。以下是我尝试运行测试时看到的输出
Unknown Device Type. Using UIUserInterfaceIdiomPad based on screen size
Terminating since there is no workspace.
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:334: note: Passed tests for architecture 'i386' (GC OFF)
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:345: note: Completed tests for architectures 'i386'
尽管它确实说测试已经通过并完成,但我认为它们实际上并没有运行。
我正在使用以下命令来运行测试:
xcodebuild -workspace MyApp.xcworkspace -scheme MyAppTests -sdk iphonesimulator -configuration Debug clean build TEST_AFTER_BUILD=YES
有没有人遇到同样的问题并可以提供解决方案?