Strip the binaries before signing them, in release configuration
authorSam Lantinga <slouken@libsdl.org>
Tue, 08 Jul 2014 00:23:36 -0700
changeset 89979e23a50a63f7
parent 8996 b8147002c991
child 8998 995f6cd966a7
Strip the binaries before signing them, in release configuration
Xcode/SDL/pkg-support/codesign-frameworks.sh
     1.1 --- a/Xcode/SDL/pkg-support/codesign-frameworks.sh	Mon Jul 07 23:48:21 2014 -0700
     1.2 +++ b/Xcode/SDL/pkg-support/codesign-frameworks.sh	Tue Jul 08 00:23:36 2014 -0700
     1.3 @@ -23,12 +23,19 @@
     1.4      exit 1
     1.5  fi
     1.6  
     1.7 -echo "Found: ${FRAMEWORKS}"
     1.8 -
     1.9  for FRAMEWORK in $FRAMEWORKS;
    1.10  do
    1.11 +    if [[ "$CONFIGURATION" = "Release" ]]; then
    1.12 +        echo "Stripping '${FRAMEWORK}'"
    1.13 +        NAME=$(basename "${FRAMEWORK}" .framework)
    1.14 +        xcrun strip -x "${FRAMEWORK}/${NAME}"
    1.15 +        RESULT=$?
    1.16 +        if [[ $RESULT != 0 ]] ; then
    1.17 +            exit 1
    1.18 +        fi
    1.19 +    fi
    1.20      echo "Signing '${FRAMEWORK}'"
    1.21 -    `codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"`
    1.22 +    codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"
    1.23      RESULT=$?
    1.24      if [[ $RESULT != 0 ]] ; then
    1.25          exit 1