Fixes #22403
This PR follows Apple docs:
- New in macOS 11 on Macs with Apple silicon, and starting in macOS Big Sur 11 beta 6, the operating system enforces that any executable must be signed before it’s allowed to run. There isn’t a specific identity requirement for this signature: a simple ad-hoc signature is sufficient…
- … If you use a custom workflow involving tools that modify a binary after linking (e.g.
strip
orinstall_name_tool
) you might need to manually callcodesign
as an additional build phase to properly ad-hoc sign your binary. These new signatures are not bound to the specific machine that was used to build the executable, they can be verified on any other system and will be sufficient to comply with the new default code signing requirement on Macs with Apple silicon…
When building with system Qt frameworks (i.e., without depends), a new string has been added to the make deploy
log on M1-based macOS:
0% make deploy
1...
2+ Generating .DS_Store +
3dist/Bitcoin-Qt.app: replacing existing signature
4+ Preparing .dmg disk image +
5...
This PR does not change build system behavior:
- when building with depends
- on Intel-based macOS