Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated ios-helper.js in order to work with newer versions of XCode #154

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions hooks/lib/ios-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var fs = require("fs");
var path = require("path");
var utilities = require("./utilities");
var xcode = require("xcode")

/**
* This is used as the display text for the build phase block in XCode as well as the
Expand All @@ -20,8 +21,7 @@ module.exports = {
addShellScriptBuildPhase: function (context, xcodeProjectPath) {

var pluginConfig = utilities.getPluginConfig("ios");
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
var xcodeProject = xcode.project(xcodeProjectPath);
Expand Down Expand Up @@ -75,8 +75,6 @@ module.exports = {
*/
removeShellScriptBuildPhase: 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
var xcodeProject = xcode.project(xcodeProjectPath);
Expand Down
94 changes: 94 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"postinstall": "opencollective postinstall"
},
"devDependencies": {
"babel": "^5.8.35"
"babel": "^5.8.35",
"xcode": "^2.0.0"
},
"packages": {
"fabric": "1.7.2",
Expand All @@ -57,4 +58,4 @@
"type": "opencollective",
"url": "https://opencollective.com/FabricPlugin"
}
}
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<plugin id="cordova-fabric-plugin" version="1.1.14-dev" xmlns="http://www.phonegap.com/ns/plugins/1.0">
<plugin id="cordova-fabric-plugin" version="1.1.15" xmlns="http://www.phonegap.com/ns/plugins/1.0">

<name>cordova-fabric-plugin</name>
<description>Cordova Fabric.io Plugin</description>
Expand Down