diff --git a/tasks/build.js b/tasks/build.js index f10cb4749..e4b971493 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -60,7 +60,12 @@ module.exports = function (grunt) { spawn([ "xcodebuild -project appshell.xcodeproj -config Release clean", "xcodebuild -project appshell.xcodeproj -config Release build" - ]).then(function () { + ]).then(function (result) { + if (result.stderr.match('xcrun: Error')) { + grunt.log.error('Unable to run : ' + result.cmd + ' ' + result.args.join(' ')); + grunt.log.error(result.stderr); + return done(false); + } done(); }, function (err) { grunt.log.error(err); diff --git a/tasks/common.js b/tasks/common.js index 4481ad933..226dcbce6 100644 --- a/tasks/common.js +++ b/tasks/common.js @@ -185,6 +185,8 @@ module.exports = function (grunt) { } child.on("close", function (code) { var closeResult = { + cmd: cmd, + args: args, code: code, stdout: stdout.toString(), stderr: stderr.toString(),