Skip to content

Commit

Permalink
[FIX] Fixed hook script where node-version-compare() is getting `NoIn…
Browse files Browse the repository at this point in the history
…dex()` error due to wrong variable type.
  • Loading branch information
Renemari Padillo committed May 11, 2016
1 parent c9dfc81 commit cec48d8
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 cec48d8

Please sign in to comment.