Having an issue since updating to Xcode 4.5 when running my unit tests via command line. The following is the output i\'m seeing when i try to run my tests
U
xcodebuild -project ${PROJECT_PATH}/${PROJECT_NAME}.xcodeproj \
-scheme ${TEST_SCHEME} \
-configuration Debug \
-sdk iphonesimulator5.1 \
clean build \
TEST_AFTER_BUILD=YES
Setting the iphonesimulator to version 5.1 seems to solve the problem. There are radar bugs filled upon this issue.
This article also mention a good solution to follow:
http://baolei.tumblr.com/post/32428168156/ios-unit-test-from-command-line-ios6-xcode4-5