Skip to content

Instantly share code, notes, and snippets.

@jakubkoci
jakubkoci / strip_architectures.sh
Created January 28, 2019 16:28
Stripping Unwanted Architectures From Dynamic Libraries In Xcode
# Based on article http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/
if [ "${CONFIGURATION}" = "Release" ]; then
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK