diff options
author | Memphiz <memphis@machzwo.de> | 2016-12-23 19:48:06 +0100 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2016-12-23 19:48:06 +0100 |
commit | 0646544aeabeb8fa01e738a566605a196a1906e6 (patch) | |
tree | 46b7763311f281b34229269c3d80bad3f7b352db /tools | |
parent | d05607fa77a052cad9506f6c422b6ff66548a225 (diff) |
[ios/codesing] - add a second method to get the bundle id (mdls seems not to work for me on sierra)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/darwin/Support/Codesign.command | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command index ff09f12309..528f74a0be 100755 --- a/tools/darwin/Support/Codesign.command +++ b/tools/darwin/Support/Codesign.command @@ -28,8 +28,13 @@ if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "appletvos" ] # pull the CFBundleIdentifier out of the built xxx.app BUNDLEID=`mdls -raw -name kMDItemCFBundleIdentifier ${CODESIGNING_FOLDER_PATH}` + if [ "${BUNDLEID}" == "(null)" ] ; then + BUNDLEID=`/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' ${CODESIGNING_FOLDER_PATH}/Info.plist` + fi + echo "CFBundleIdentifier is ${BUNDLEID}" + # Prefer the expanded name, if available. CODE_SIGN_IDENTITY_FOR_ITEMS="${EXPANDED_CODE_SIGN_IDENTITY_NAME}" if [ "${CODE_SIGN_IDENTITY_FOR_ITEMS}" = "" ] ; then |