Skip to content

Commit

Permalink
[ios/codesing] - add a second method to get the bundle id (mdls seems…
Browse files Browse the repository at this point in the history
… not to work for me on sierra)
  • Loading branch information
Memphiz committed Dec 23, 2016
1 parent d05607f commit 0646544
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/darwin/Support/Codesign.command
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0646544

Please sign in to comment.