Skip to content

Commit 5d975cf

Browse files
ilyakamensrammie
authored andcommitted
Make compatible with cordova-cli 9
See arnesson#1033 Taken from arnesson#1034
1 parent a32b126 commit 5d975cf

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@
4545
"test:[email protected]:[email protected]": "bash ./test/test-default.sh 7.1.0 browser 5.0.3",
4646
"test:[email protected]:[email protected]": "bash ./test/test-default.sh 8.0.0 browser 5.0.3"
4747
},
48-
"dependencies": {}
48+
"dependencies": {
49+
"xcode": "2.0.0"
50+
}
4951
}

scripts/ios/helper.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var fs = require("fs");
22
var path = require("path");
33
var utilities = require("../lib/utilities");
4+
var xcode = require("xcode");
45

56
/**
67
* This is used as the display text for the build phase block in XCode as well as the
@@ -30,8 +31,6 @@ module.exports = {
3031
* (dSYMs) so that Crashlytics can display stack trace information in it's web console.
3132
*/
3233
addShellScriptBuildPhase: function (context, xcodeProjectPath) {
33-
var xcode = context.requireCordovaModule("xcode");
34-
3534
// Read and parse the XCode project (.pxbproj) from disk.
3635
// File format information: http://www.monobjc.net/xcode-project-file-format.html
3736
var xcodeProject = xcode.project(xcodeProjectPath);
@@ -84,9 +83,6 @@ module.exports = {
8483
* by the addShellScriptBuildPhase() helper method.
8584
*/
8685
removeShellScriptBuildPhase: function (context, xcodeProjectPath) {
87-
88-
var xcode = context.requireCordovaModule("xcode");
89-
9086
// Read and parse the XCode project (.pxbproj) from disk.
9187
// File format information: http://www.monobjc.net/xcode-project-file-format.html
9288
var xcodeProject = xcode.project(xcodeProjectPath);

0 commit comments

Comments
 (0)