自从更新到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
有人遇到过同样的问题并可以提供解决方案吗?