Skip to content

Commit 0c94dd8

Browse files
authored
fix: hardcoded libheif rpath workaround for macos-13 intel runner
1 parent 5476241 commit 0c94dd8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/symx-simulator-extract.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ jobs:
5050
chmod +x symsorter
5151
pwd
5252
ls -la
53+
54+
- name: macOS 13 compat path for libheif
55+
if: matrix.os == 'macos-13'
56+
shell: bash
57+
run: |
58+
set -euo pipefail
59+
60+
LIBHEIF_LIBDIR="$(brew --prefix libheif)/lib"
61+
62+
# Re-create the hardcoded root rpath that ipsw tries to load
63+
sudo mkdir -p /usr/local/homebrew/opt/libheif/lib
64+
65+
# symlink the lib to the fake path
66+
sudo ln -sf "$LIBDIR/libheif.1.dylib" /usr/local/homebrew/opt/libheif/lib/libheif.1.dylib
67+
68+
echo "DYLD_PRINT_LIBRARIES=1" >> "$GITHUB_ENV"
5369

5470
- name: Extract Simulator from ${{matrix.runs-on}}
5571
run: uv run python -m symx -v sim extract -s ${{ vars.SYMX_STORE }}

0 commit comments

Comments
 (0)