From cec48d8b429d8f3edcef369e8f842743c42a1062 Mon Sep 17 00:00:00 2001 From: Renemari Padillo Date: Wed, 11 May 2016 14:13:14 +0800 Subject: [PATCH] [FIX] Fixed hook script where node-version-compare() is getting `NoIndex()` error due to wrong variable type. --- hooks/lib/ios/xcodePreferences.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/lib/ios/xcodePreferences.js b/hooks/lib/ios/xcodePreferences.js index e9a492dd..fe8d2ff1 100755 --- a/hooks/lib/ios/xcodePreferences.js +++ b/hooks/lib/ios/xcodePreferences.js @@ -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; }