diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 0eb0c0eaa5..51fcc36666 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -81,6 +81,11 @@ cordova.buildTargets = function (localPath, targets, options) { checkRequestedPlatforms(platforms); _.each(platforms, function (platform) { + if (! _.contains(availablePlatforms, platform)) { + Console.warn(platform + ': skipping platform not available on your system'); + return; + } + requirePlatformReady(platform); });