Before, both xcodebuild and running the built product always had an exit code of 0.
Now, the exit code of the xcodebuild command is 65 for spec failures and 0 when successful. (There may be other significant codes, but I can't change this.)
To get the exit code corresponding to the number of failing tests, you have to run the built product.
$ ./build/Debug/TestMacVersion
/Users/eric/Projects/8thlight/OCDSpec/Specs/OCDSpecOutputter+RedirectOutputSpec.m:20: error: The Test data was not redirected
Tests ran with 46 passing tests and 1 failing tests
$ echo $?
1
Before, both xcodebuild and running the built product always had an exit code of 0.
Now, the exit code of the xcodebuild command is 65 for spec failures and 0 when successful. (There may be other significant codes, but I can't change this.)
To get the exit code corresponding to the number of failing tests, you have to run the built product.