aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-10-22 02:56:43 -0700
committerMemphiz <memphis@machzwo.de>2013-10-22 02:56:43 -0700
commit6445124e443560ab4bbcf0c1ec149ba381c04c67 (patch)
tree1cd9b5d216d81f61b705443ef813d801add41b06 /tools
parentb79897c90d38e9b3dcf5b742b96c6db65805c8bd (diff)
parent954f1d9572668bd0ad05e700572ab9c22846f621 (diff)
Merge pull request #3437 from Memphiz/iossandbox
[iOS] - Adaptions for developing for XBMC on non-jailbroken devices
Diffstat (limited to 'tools')
-rwxr-xr-xtools/darwin/Support/Codesign.command15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command
index d1d124ff81..62e248cf62 100755
--- a/tools/darwin/Support/Codesign.command
+++ b/tools/darwin/Support/Codesign.command
@@ -1,5 +1,8 @@
#!/bin/bash
+#this is the list of binaries we have to sign for beeing able to run un-jailbroken
+LIST_BINARY_EXTENSIONS="dylib so 0 vis"
+
export CODESIGN_ALLOCATE=`xcodebuild -find codesign_allocate`
GEN_ENTITLEMENTS="/Developer/iphoneentitlements401/gen_entitlements.py"
@@ -16,4 +19,14 @@ if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
fi
${GEN_ENTITLEMENTS} "org.xbmc.xbmc-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}/"
-fi \ No newline at end of file
+
+ #if user has set a code_sign_identity different from iPhone Developer we do a real codesign (for deployment on non-jailbroken devices)
+ if ! [ -z "${CODE_SIGN_IDENTITY}" ] && [ "${CODE_SIGN_IDENTITY}" != "iPhone Developer" ] && [ "${CODE_SIGN_IDENTITY}" != "Don't Code Sign" ]; then
+ echo Doing a full bundle sign using genuine identity "${CODE_SIGN_IDENTITY}"
+ for binext in $LIST_BINARY_EXTENSIONS
+ do
+ codesign -fvvv -s "${CODE_SIGN_IDENTITY}" -i org.xbmc.xbmc-ios `find ${CODESIGNING_FOLDER_PATH} -name "*.$binext"` ${CODESIGNING_FOLDER_PATH}
+ done
+ echo In case your app crashes with SIG_SIGN check the variable LIST_BINARY_EXTENSIONS in tools/darwin/Support/Codesign.command
+ fi
+fi