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
This commit is contained in:
Eric Plaster
2013-04-28 17:50:02 -05:00
parent 8eb666e6f8
commit 749d817fd0

View File

@@ -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);