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 "$@" |
@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
@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?
@psolt-gpsw anyway to cleanup those paths without doing a version bump?
@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.