Repository: bitcoin/bitcoin (language: cpp)

Issue:
macOS Monterey deleting bitcoin core after updates (M1)
When updating to macOS Monterey the bitcoin core app is deleted from the applications folder. If pinned to the dock you will see a "?" where it was in it's location.

Did not delete wallet or node data. Reinstalling the application works just fine.



Discussion / hints:
Did it happen to Bitcoin Core app only?
Is it a macOS Monterey expected or buggy behavior?
Yes only to Bitcoin Core app while third party applications that have also been downloaded from an external source remain. This wasn't expected in prior builds but it has happened twice thus far on Beta 7 and 6 of macOS Monterey.

Update: Beta 8 does the same. Looking at logs for any reference to the deletion but my assumption it's been added to xprotect and treating it as malware.
@nunya-mich 

Is it a self-compiled binary, or a signed release binary?
Self-compiled is good to go it appears to be the signed release binary only at this time. The self-compiled survive the last beta update.
I have it too. This problem/bug has existed for more than a year.
Such problem exists on Bigsur & Monterey.
I just installed bitcoin core and after three days - no more program files on the computer.

Just these files:
<img width="752" alt="Screenshot 2022-01-23 at 14 54 27" src="https://user-images.githubusercontent.com/96632672/150679354-82b0f561-a66e-474e-8477-bb9432287c4a.png">
<img width="193" alt="Screenshot 2022-01-23 at 14 56 22" src="https://user-images.githubusercontent.com/96632672/150679456-9329a173-a059-4f12-90bb-7d13eb9c806b.png">
 
I was able to reproduce this behaviour in a virtual machine. 

After updating from macOS 12.2 to 12.2.1 the Bitcoin Core application `/Applications/Bitcoin-Qt.app/` was gone. Fortunately the data directory is still available.

Fix patch:
diff --git a/contrib/guix/manifest.scm b/contrib/guix/manifest.scm
index a0afb7b4f6b17..008531e154002 100644
--- a/contrib/guix/manifest.scm
+++ b/contrib/guix/manifest.scm
@@ -485,7 +485,7 @@ and endian independent.")
     (license license:expat)))
 
 (define-public python-signapple
-  (let ((commit "0777ce58e61b0e6be753a5f524149d6d47905186"))
+  (let ((commit "8a945a2e7583be2665cf3a6a89d665b70ecd1ab6"))
     (package
       (name "python-signapple")
       (version (git-version "0.1" "1" commit))
@@ -498,7 +498,7 @@ and endian independent.")
          (file-name (git-file-name name commit))
          (sha256
           (base32
-           "19axspyyfqbrfw2r53c17mi9bvm8zsb39mz8v9h7c173qkm3x5ym"))))
+           "0fr1hangvfyiwflca6jg5g8zvg3jc9qr7vd2c12ff89pznf38dlg"))))
       (build-system python-build-system)
       (propagated-inputs
        `(("python-asn1crypto" ,python-asn1crypto)


Test patch: