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 "$@"
@psolt-gpsw
Copy link

@caioremedio I fixed our issue. Bumping the Facebook SDK version was important to make it different from previously used versions on our developer's machines. Otherwise, it may still reference the old build from the previous UUID and the hard-coded paths.

Did you walk through all of my steps?

@aakarsh-sasi
Copy link

@psolt-gpsw anyway to cleanup those paths without doing a version bump?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment