Strip the binaries before signing them, in release configuration
This commit is contained in:
parent
3cf1187208
commit
61b34b6728
1 changed files with 10 additions and 3 deletions
|
@ -23,12 +23,19 @@ if [[ $RESULT != 0 ]] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Found: ${FRAMEWORKS}"
|
|
||||||
|
|
||||||
for FRAMEWORK in $FRAMEWORKS;
|
for FRAMEWORK in $FRAMEWORKS;
|
||||||
do
|
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}'"
|
echo "Signing '${FRAMEWORK}'"
|
||||||
`codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"`
|
codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
if [[ $RESULT != 0 ]] ; then
|
if [[ $RESULT != 0 ]] ; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue