diff --git a/package.json b/package.json index 5ade7135f..6d004debf 100644 --- a/package.json +++ b/package.json @@ -45,5 +45,8 @@ "test:cordova@7.1.0:browser@5.0.3": "bash ./test/test-default.sh 7.1.0 browser 5.0.3", "test:cordova@8.0.0:browser@5.0.3": "bash ./test/test-default.sh 8.0.0 browser 5.0.3" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "xcode": "^2.0.0" + } } diff --git a/scripts/ios/helper.js b/scripts/ios/helper.js index 946496a9c..a155ab3c4 100644 --- a/scripts/ios/helper.js +++ b/scripts/ios/helper.js @@ -1,6 +1,7 @@ var fs = require("fs"); var path = require("path"); var utilities = require("../lib/utilities"); +var xcode = require("xcode"); /** * This is used as the display text for the build phase block in XCode as well as the @@ -30,7 +31,6 @@ module.exports = { * (dSYMs) so that Crashlytics can display stack trace information in it's web console. */ addShellScriptBuildPhase: function (context, xcodeProjectPath) { - var xcode = context.requireCordovaModule("xcode"); // Read and parse the XCode project (.pxbproj) from disk. // File format information: http://www.monobjc.net/xcode-project-file-format.html