Skip to content

Instantly share code, notes, and snippets.

@evandcoleman
Created May 29, 2020 17:01
Show Gist options
  • Save evandcoleman/aa7f634d229f7e2ce5b691957f862275 to your computer and use it in GitHub Desktop.
Save evandcoleman/aa7f634d229f7e2ce5b691957f862275 to your computer and use it in GitHub Desktop.

A fix for debugging shared precompiled binaries from Carthage.

error: Couldn't IRGen expression, no additional error

Usage

./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 "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment