Terminating since there is no workspace

Originator:mhorvath1980
Number:rdar://12306879 Date Originated:15.09.2012
Status:Open Resolved:
Product:Developer Tools Product Version:4.5 GM
Classification:Other Bug Reproducible:Always
 
Hi,

when running logic tests on the command line (via xcodebuild) using the iOS 6 SDK, it won't work due to the message:

$ > xcodebuild -workspace TestApp.xcworkspace -scheme LogicTests -configuration Debug TEST_AFTER_BUILD=YES -sdk iphonesimulator6.0 build

=== BUILD NATIVE TARGET TestAppLogicTests OF PROJECT TestApp WITH CONFIGURATION Debug ===

...
...

/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:266: note: Started tests for architectures 'i386'
Run unit tests for architecture 'i386' (GC OFF)
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:273: note: Running tests for architecture 'i386' (GC OFF)
2012-09-15 17:30:37.317 SN-Reporter[41333:707] Unknown Device Type. Using UIUserInterfaceIdiomPhone 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'

...
...

When switching to the iOS 5.1 SDK, everything works fine.

This already happened with the DP 3 and DP4 versions of Xcode 4.5.

I assumed this would be fixed with the GM.

What should be changed to fix this problem?

Comments

In case of Cedar Tests

There's also possible solution that worked for me for Cedar Unit Testing http://stackoverflow.com/a/14395861/104170

Jacob Wallström

I'm also seeing this problem. For more info refer to: http://stackoverflow.com/questions/12557935/xcode-4-5-command-line-unit-testing

By jacob.wallstrom at Oct. 8, 2012, 9:24 a.m. (reply...)

Enterprise Builds

Like many others, we are seeing this problem, too. We have to distribute using enterprise builds, and not being able to test agaist iOS 6 with each build is a major issue.

Also logged as rdar://12368258.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!