summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/cordova/lib/clean.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/cordova/lib/clean.js')
-rwxr-xr-xStoneIsland/platforms/ios/cordova/lib/clean.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/StoneIsland/platforms/ios/cordova/lib/clean.js b/StoneIsland/platforms/ios/cordova/lib/clean.js
index 6d955cf1..7c8cf56e 100755
--- a/StoneIsland/platforms/ios/cordova/lib/clean.js
+++ b/StoneIsland/platforms/ios/cordova/lib/clean.js
@@ -22,8 +22,7 @@
var Q = require('q'),
path = require('path'),
shell = require('shelljs'),
- spawn = require('./spawn'),
- check_reqs = require('./check_reqs');
+ spawn = require('./spawn');
var projectPath = path.join(__dirname, '..', '..');
@@ -36,9 +35,8 @@ module.exports.run = function() {
return Q.reject('No Xcode project found in ' + projectPath);
}
- return check_reqs.run().then(function() {
- return spawn('xcodebuild', ['-project', projectName, '-configuration', 'Debug', '-alltargets', 'clean'], projectPath);
- }).then(function () {
+ return spawn('xcodebuild', ['-project', projectName, '-configuration', 'Debug', '-alltargets', 'clean'], projectPath)
+ .then(function () {
return spawn('xcodebuild', ['-project', projectName, '-configuration', 'Release', '-alltargets', 'clean'], projectPath);
}).then(function () {
return shell.rm('-rf', path.join(projectPath, 'build'));