You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: Bundle format unrecognized, invalid, or unsuitable #34744
Should they be? Isn't macdeployqtplus meant to create a standalone tarball (which is why the libraries are copied into the bundle in the first place). If not, then why copy the dylibs at all?
Should they be? Isn't macdeployqtplus meant to create a standalone tarball (which is why the libraries are copied into the bundle in the first place). If not, then why copy the dylibs at all?
Ok. So if this is broken, should it be on the v31 milestone? Looks like it might have been broken for a while, so maybe not? Opened #34787 to check the CI. Any fix here should likely add a similar test, to prevent silent breakage.
Looks like it might have been broken for a while, so maybe not?
When building locally on macOS 26.3.1 (M4) and opening the build folder in Finder, Bitcoin-Qt.app works but bitcoin-macos-app.zip doesn't. I've noticed that before, but I assumed the latter was only supposed to work in guix builds.
Starting from the terminal also fails:
% build/Bitcoin-Qt\ 2.app/Contents/MacOS/Bitcoin-Qt
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa"in""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
zsh: abort build/Bitcoin-Qt\ 2.app/Contents/MacOS/Bitcoin-Qt
I can also reproduce the "bundle format unrecognized" with the steps in the PR description. Will test the fix.
Activity
pinheadmz commentedon Mar 5, 2026
Which version of Bitcoin?
fanquake commentedon Mar 5, 2026
What are the steps to reproduce?
What version of the code?
What version of Qt in brew (if used)?
hebasto commentedon Mar 5, 2026
The issue has been updated with more details.
pinheadmz commentedon Mar 5, 2026
Does the cmake macOS deploy target do code signing? Like. What's codesign --verify expected to do before a signed release?
hebasto commentedon Mar 5, 2026
bitcoin/contrib/macdeploy/macdeployqtplus
Lines 490 to 492 in fc39a4f
hebasto commentedon Mar 5, 2026
Here is a culprit:
bitcoin/contrib/macdeploy/macdeployqtplus
Line 502 in fc39a4f
where symlinks are not preserved.
fanquake commentedon Mar 5, 2026
Should they be? Isn't
macdeployqtplusmeant to create a standalone tarball (which is why the libraries are copied into the bundle in the first place). If not, then why copy thedylibsat all?hebasto commentedon Mar 5, 2026
Quoting from Placing content in a bundle:
fanquake commentedon Mar 10, 2026
Ok. So if this is broken, should it be on the v31 milestone? Looks like it might have been broken for a while, so maybe not? Opened #34787 to check the CI. Any fix here should likely add a similar test, to prevent silent breakage.
fanquake commentedon Mar 10, 2026
Now a (mostly untested) fix for this in #34787.
Sjors commentedon Mar 11, 2026
When building locally on macOS 26.3.1 (M4) and opening the build folder in Finder,
Bitcoin-Qt.appworks butbitcoin-macos-app.zipdoesn't. I've noticed that before, but I assumed the latter was only supposed to work in guix builds.Starting from the terminal also fails:
I can also reproduce the "bundle format unrecognized" with the steps in the PR description. Will test the fix.
Merge bitcoin#34787: build: fix native macOS deployment