Ignore iOS on build entirely

This commit is contained in:
Slava Kim
2014-10-20 14:23:35 -07:00
parent fd130fea0d
commit 0b1040491e
2 changed files with 8 additions and 3 deletions

View File

@@ -79,13 +79,15 @@ cordova.buildTargets = function (localPath, targets, options) {
verboseLog('Running build for platforms:', platforms);
checkRequestedPlatforms(platforms);
_.each(platforms, function (platform) {
platforms = _.filter(platforms, function (platform) {
if (! _.contains(availablePlatforms, platform)) {
Console.warn(platform + ': skipping platform not available on your system');
return;
return false;
}
return true;
});
_.each(platforms, function (platform) {
requirePlatformReady(platform);
});

View File

@@ -733,6 +733,8 @@ var buildCommand = function (options) {
appName: appName
}));
} catch (err) {
if (err instanceof main.ExitWithCode)
throw err;
Console.printError(err, "Error while building for mobile platforms");
return 1;
}
@@ -814,6 +816,7 @@ var buildCommand = function (options) {
var platformPath = path.join(outputPath, platformName);
if (platformName === 'ios') {
if (process.platform !== 'darwin') return;
files.cp_r(buildPath, path.join(platformPath, 'project'));
fs.writeFileSync(
path.join(platformPath, 'README'),