Skip to content

Instantly share code, notes, and snippets.

@KosmicTask
Created June 10, 2014 12:50
Show Gist options
  • Save KosmicTask/24c0c317f5588331d9f7 to your computer and use it in GitHub Desktop.
Save KosmicTask/24c0c317f5588331d9f7 to your computer and use it in GitHub Desktop.
HockeyApp OS X SDK : Configure NSPrincipalClass == BITCrashExceptionApplication in info.plist for release builds only
if [ "${CONFIGURATION}" = "Release" ]; then
# HockeyApp support
# Set prinicipal class in output info.plist
# This improves the crash catchers behaviour for release builds only.
# NSApplication is preferred for development builds as it logs to the console.
release_plist=${CONFIGURATION_BUILD_DIR}/${INFOPLIST_PATH}
echo "${release_plist}"
/usr/libexec/PlistBuddy -c "Set :NSPrincipalClass BITCrashExceptionApplication" "${release_plist}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment