Installation via Bitcoin-Core.dmg is broken on macOS (Apple Silicon) #22403

issue hebasto openend this issue on July 5, 2021
  1. hebasto commented at 1:15 pm on July 5, 2021: member

    System: macOS Big Sur 11.4 (20F71), chip Apple M1.

    On master (c609e10545492aba480ff17aff7eefc13a0b5cd8), after succesfull make deploy (without depends), the app installed from Bitcoin-Core.dmg fails to run.

    src/qt/bitcoin-qt works flawlessly.

  2. hebasto added the label Bug on Jul 5, 2021
  3. hebasto added the label macOS on Jul 5, 2021
  4. jarolrod commented at 2:48 pm on July 5, 2021: member
    will test but I believe this was supposed to fix it? https://github.com/bitcoin/bitcoin/pull/21658
  5. hebasto commented at 3:00 pm on July 5, 2021: member

    will test but I believe this was supposed to fix it? #21658

    I’ve update the OP to mentioned the issue happens on master (c609e10545492aba480ff17aff7eefc13a0b5cd8).

    UPDATE:

     0% /opt/homebrew/bin/python3.9 -m pip show mac_alias 
     1Name: mac-alias
     2Version: 2.2.0
     3Summary: Generate/parse Mac OS Alias records from Python
     4Home-page: http://alastairs-place.net/projects/mac_alias
     5Author: Alastair Houghton
     6Author-email: alastair@alastairs-place.net
     7License: MIT License
     8Location: /opt/homebrew/lib/python3.9/site-packages
     9Requires: 
    10Required-by: ds-store
    
  6. hebasto commented at 3:11 pm on July 5, 2021: member

    @jarolrod

    Building with depends, make deploy, and the following installation from *.dmg works fine.

  7. jarolrod commented at 3:12 pm on July 5, 2021: member
    ah right, that’s the difference. Noted
  8. prusnak commented at 10:16 am on July 6, 2021: contributor

    Building with depends, make deploy, and the following installation from *.dmg works fine.

    Shouldn’t make deploy depend on (at least part of) make -C depends then?

  9. fanquake deleted a comment on Jul 8, 2021
  10. fanquake commented at 2:52 am on July 9, 2021: member

    the app installed from Bitcoin-Core.dmg fails to run.

    Hard to debug anything here with such little information. For what it’s worth, I’ve installed from the .dmg after a non depends builds, and from what I can see, the issue is related to us running strip & install_name_tool on libs while building the .dmg. This breaks some Apple code-signing requirement, and prevents the app from launching.

    Looks like some other projects have run into a similar issue when doing the same thing. i.e: https://gitlab.kitware.com/cmake/cmake/-/issues/21854.

  11. hebasto commented at 1:42 pm on July 11, 2021: member

    According to https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-universal-apps-release-notes it looks like the binaries must be signed (at least with ad-hoc signatures):

    0codesign --sign - --deep --force dist/Bitcoin-Qt.app
    
  12. achow101 commented at 5:33 pm on July 13, 2021: member
    signapple should already be able to make signatures for universal binaries, so we should be good for releases.
  13. hebasto commented at 4:51 pm on July 25, 2021: member

    According to https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-universal-apps-release-notes it looks like the binaries must be signed (at least with ad-hoc signatures):

    0codesign --sign - --deep --force dist/Bitcoin-Qt.app
    

    Done in #22546.

  14. hebasto added the label Build system on Aug 27, 2021
  15. fanquake closed this on Feb 23, 2022

  16. sidhujag referenced this in commit 88aeaee14c on Feb 23, 2022
  17. DrahtBot locked this on Feb 23, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me