mirror of
https://github.com/appium/appium.git
synced 2026-02-13 05:19:47 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user