aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-07-23 01:10:00 +0200
committerMemphiz <memphis@machzwo.de>2015-07-23 01:10:00 +0200
commitda889087adbed5d03a05136650dec37a01aea974 (patch)
tree143cc955ad8b82bd9c7f4d928e11006b45845e22 /tools
parentc38d8af4feb7f70be57f621ffce2370e56f6e9f0 (diff)
[ios/codesign] - if ldid was found - apply it to the kodi binary for fake signing it - this fixes runtime error on ios5.1 devices
Diffstat (limited to 'tools')
-rwxr-xr-xtools/darwin/Support/Codesign.command7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command
index 2334741caf..6c2128db60 100755
--- a/tools/darwin/Support/Codesign.command
+++ b/tools/darwin/Support/Codesign.command
@@ -6,6 +6,7 @@ LIST_BINARY_EXTENSIONS="dylib so 0 vis pvr"
export CODESIGN_ALLOCATE=`xcodebuild -find codesign_allocate`
GEN_ENTITLEMENTS="$XBMC_DEPENDS_ROOT/buildtools-native/bin/gen_entitlements.py"
+LDID="$XBMC_DEPENDS_ROOT/buildtools-native/bin/ldid"
if [ ! -f ${GEN_ENTITLEMENTS} ]; then
echo "error: $GEN_ENTITLEMENTS not found. Codesign won't work."
@@ -17,6 +18,12 @@ if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
if [ -f "/Users/Shared/buildslave/keychain_unlock.sh" ]; then
/Users/Shared/buildslave/keychain_unlock.sh
fi
+
+ #do fake sign - needed for jailbroken ios5.1 devices for some reason
+ if [ -f ${LDID} ]; then
+ ${LDID} -S ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${APP_NAME}
+ fi
+
${GEN_ENTITLEMENTS} "org.xbmc.kodi-ios" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -v -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"