Repository navigation
Commit 89518ef
fix(demo): embed the dynamic FFmpegBuild frameworks in the demo .app
The demo bundle shipped without the frameworks its binary loads through
@rpath, so the 6.5.6 build aborted at launch with "Library not loaded:
@rpath/Libavcodec.framework/Versions/A/Libavcodec" (AetherPlayer#2). It
was not machine specific: the bundle contained none of them.
Those libraries were statically linked once, and the script recorded that
as a comment ending "if FFmpegBuild ever switches to dynamic frameworks,
this is where they'd be copied to". It since did switch, because LGPL
wants them relinkable, and a comment cannot notice that happening. The
binary today loads nine frameworks through @rpath.
Copy them into Contents/Frameworks, add the matching rpath, sign nested
code inside out (signing the .app seals whatever Frameworks/ already
holds), and replace the stale note with a check that fails the build when
an @rpath dependency is missing from the bundle.
Verified against a universal release build: the guard reports 18
unresolved dependencies (nine frameworks across two slices) before
embedding and none after, and the resulting bundle launches instead of
aborting in dyld.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01HX5zV3Fcf7Nzq4DYGdXvQE1 parent 1d9785b commit 89518ef
1 file changed
Lines changed: 56 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
86 | 127 | | |
87 | 128 | | |
88 | 129 | | |
| |||
148 | 189 | | |
149 | 190 | | |
150 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
151 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
152 | 203 | | |
153 | 204 | | |
154 | 205 | | |
155 | 206 | | |
156 | 207 | | |
157 | | - | |
| 208 | + | |
158 | 209 | | |
159 | 210 | | |
160 | 211 | | |
| |||
0 commit comments