Commit f006b0e4 authored by David Fuhrmann's avatar David Fuhrmann

macOS build.sh: Workaround for breakpad symbol generation

Current tools set the library identification names to the
unversioned libraries (e.g. rpath/libvlccore.dylib), therefore
breakpad needs symbols with that library name.
Currently, breakpad does not support having the same symbols for
multiple names, therefore it cannot keep symbols for both the
versioned and unversioned variants.

Workaround that by removing the symlinks and only keeping the
unversioned name of the libraries for VLC-debug.app.

refs #19653
parent 724747fa
......@@ -231,6 +231,12 @@ if [ "$PACKAGETYPE" = "u" ]; then
rm -rf VLC-debug.app
cp -Rp VLC.app VLC-debug.app
# Workaround for breakpad symbol parsing:
# Symbols must be uploaded for libvlc(core).dylib, not libvlc(core).x.dylib
(cd VLC-debug.app/Contents/MacOS/lib/ && rm libvlccore.dylib && mv libvlccore.*.dylib libvlccore.dylib)
(cd VLC-debug.app/Contents/MacOS/lib/ && rm libvlc.dylib && mv libvlc.*.dylib libvlc.dylib)
find VLC.app/ -name "*.dylib" -exec strip -x {} \;
find VLC.app/ -type f -name "VLC" -exec strip -x {} \;
find VLC.app/ -type f -name "Sparkle" -exec strip -x {} \;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment