[macOS] Apple Silicon Macs require signed code to run -- update macOSCompile wiki
Apple Silicon Macs require signed code to run, and if you build and run VLC it will crash on launch with a crash report cause of "Code Signature Invalid". This does not happen on Intel Macs.
Xcode now provides a convenient way of applying ad-hoc code signing when building apps, when you select the Sign to Run Locally option for Signing Certificate. It’s also available using command line tools, and can be called manually using codesign -s - filename where the hyphen applies an ad-hoc signature.
The VLC wiki page macOSCompile section "Sign VLC Application for Mac" should recommend all developers sign their local build of the VLC.app with the default ad-hoc signature. I recommend replacing the current code block with:
../extras/package/macosx/codesign.sh -i "-"
open VLC.app
I'm posting this issue because I cannot create a VLC wiki acocunt to make the update myself. Hopefully this will help someone else, thanks.