A fix for debugging shared precompiled binaries from Carthage.
error: Couldn't IRGen expression, no additional error
./build.sh --platform ios MyCoolFramework
#!/bin/sh -e | |
XCCONFIG=$(mktemp /tmp/static.xcconfig.XXXXXX) | |
trap 'rm -f "$XCCONFIG"' INT TERM HUP EXIT | |
echo "SWIFT_SERIALIZE_DEBUGGING_OPTIONS = NO" >> $XCCONFIG | |
export XCODE_XCCONFIG_FILE="$XCCONFIG" | |
carthage build "$@" |
Read Strava's post: https://medium.com/strava-engineering/how-to-fix-lldb-couldnt-irgen-expression-when-using-carthage-b0a111e02497