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

@aakarsh-sasi Did you solve your issue? I'm facing exactly the same thing and I can't get my username out of the BCSymbolMaps files.

@psolt-gpsw I did everything, every kind of clean, but my username still shows up as path.

I even checked the Carthage build log, and its passing the two variables correctly, even on swiftc.

I'm using Xcode 13.2 btw.

@aakarsh-sasi
Copy link

@caioremedio no I couldn’t fix the path after multiple trials and then I gave up in the end. If using both the flag solved this, would have saved a lot of time

@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