Skip to content

Commit

Permalink
Strip the binaries before signing them, in release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 8, 2014
1 parent 04938bb commit d66015c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Xcode/pkg-support/codesign-frameworks.sh
Expand Up @@ -23,12 +23,19 @@ if [[ $RESULT != 0 ]] ; then
exit 1
fi

echo "Found: ${FRAMEWORKS}"

for FRAMEWORK in $FRAMEWORKS;
do
if [[ "$CONFIGURATION" = "Release" ]]; then
echo "Stripping '${FRAMEWORK}'"
NAME=$(basename "${FRAMEWORK}" .framework)
xcrun strip -x "${FRAMEWORK}/${NAME}"
RESULT=$?
if [[ $RESULT != 0 ]] ; then
exit 1
fi
fi
echo "Signing '${FRAMEWORK}'"
`codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"`
codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"
RESULT=$?
if [[ $RESULT != 0 ]] ; then
exit 1
Expand Down

0 comments on commit d66015c

Please sign in to comment.