Skip to content

Commit

Permalink
Merge pull request #141 from BranchMetrics/fix/hook-build-error
Browse files Browse the repository at this point in the history
[FIX] Fixed hook script where node-version-compare()
  • Loading branch information
aaustin committed May 11, 2016
2 parents c9dfc81 + cec48d8 commit c188119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/lib/ios/xcodePreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Which is:
for (config in configurations) {
buildSettings = configurations[config].buildSettings;
buildSettings['CODE_SIGN_ENTITLEMENTS'] = '"' + entitlementsFilePath + '"';

// if deployment target is less then the required one - increase it
if (buildSettings['IPHONEOS_DEPLOYMENT_TARGET']) {
if (compare(buildSettings['IPHONEOS_DEPLOYMENT_TARGET'], IOS_DEPLOYMENT_TARGET) == -1) {
var buildDeploymentTarget = buildSettings['IPHONEOS_DEPLOYMENT_TARGET'].toString();
if (compare(buildDeploymentTarget, IOS_DEPLOYMENT_TARGET) == -1) {
buildSettings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_DEPLOYMENT_TARGET;
deploymentTargetIsUpdated = true;
}
Expand Down

0 comments on commit c188119

Please sign in to comment.