Use return code from xcodebuild for test script