diff --git a/scripts/before_plugin_rm.js b/scripts/before_plugin_rm.js index 95fc238..9a9638d 100644 --- a/scripts/before_plugin_rm.js +++ b/scripts/before_plugin_rm.js @@ -2,13 +2,14 @@ var iosHelper = require("./lib/ios-helper"); var utilities = require("./lib/utilities"); +var os = require('os'); module.exports = function(context) { var platforms = context.opts.cordova.platforms; // Remove the build script that was added when the plugin was installed. - if (platforms.indexOf("ios") !== -1) { + if (platforms.indexOf("ios") !== -1 && os.platform() === 'darwin') { var xcodeProjectPath = utilities.getXcodeProjectPath(context); iosHelper.removeShellScriptBuildPhase(context, xcodeProjectPath); }