Using Xcodebuild directly from bash, how would one detect a failure? the exit code is always 0 regardless. I realize there's an "FAILED" or "SUCCEEDED" textural output, but isn't there a more elegant way?
Also, I sometimes use "make" (especially with my Qt based builds). Is there a way to detect make has failed from the build script?