From 749d817fd004e68693c67dd0059442e3cb643a14 Mon Sep 17 00:00:00 2001 From: Eric Plaster Date: Sun, 28 Apr 2013 17:50:02 -0500 Subject: [PATCH] Make sure to do a clean before build of the ios apps in case of an upgrade/downgrade to the compiler. Fixed some lint errors --- grunt-helpers.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/grunt-helpers.js b/grunt-helpers.js index 9cd839397..c8f41c5c5 100644 --- a/grunt-helpers.js +++ b/grunt-helpers.js @@ -192,11 +192,16 @@ module.exports.build = function(appRoot, cb, sdk) { if (typeof sdk == "undefined") { sdk = 'iphonesimulator6.0'; } - console.log("Building app..."); - var args = ['-sdk', sdk]; + var args = ['-sdk', sdk, 'clean']; + console.log("Cleaning build..."); var xcode = spawn('xcodebuild', args, { cwd: appRoot }); + console.log("Building app..."); + args = ['-sdk', sdk]; + xcode = spawn('xcodebuild', args, { + cwd: appRoot + }); var output = ''; var collect = function(data) { output += data; }; xcode.stdout.on('data', collect);