Skip to content

Instantly share code, notes, and snippets.

@xocialize
Created March 15, 2019 23:38
Show Gist options
  • Save xocialize/ba3520f2e25378892295573f8b23fa64 to your computer and use it in GitHub Desktop.
Save xocialize/ba3520f2e25378892295573f8b23fa64 to your computer and use it in GitHub Desktop.
xcode codesign
LOCATION="${BUILT_PRODUCTS_DIR}"/"${FRAMEWORKS_FOLDER_PATH}"
# By default, use the configured code signing identity for the project/target
#IDENTITY="${CODE_SIGN_IDENTITY}"
IDENTITY="${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
if [ "$IDENTITY" == "" ]
then
# If a code signing identity is not specified, use ad hoc signing
IDENTITY="-"
fi
codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION/Sparkle.framework/Versions/A/Resources/Updater.app"
codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate"
codesign --verbose --force -o runtime --sign "$IDENTITY" "$LOCATION/Sparkle.framework/Versions/A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment