On macOS Big Sur 11.2.3 (20D91):
0% xcrun --show-sdk-version
111.1
When bitcoin-qt
is compiled with depends, no window is shown.
That was not the case before bumping Qt version to 5.12.10. See https://github.com/bitcoin/bitcoin/pull/21376#issuecomment-795379418
I scratched it a bit. Looks like a problem with the Cocoa integration plugin as dereferencing of the QGuiApplicationPrivate::platformIntegration()
pointer causes the EXC_BAD_ACCESS
error.
Probably, it’s an upstream bug.
UPDATE:
Case A (SDK 11.1)
- system: Big Sur 11.2.3 (20D91)
0% xcode-select --print-path
1/Library/Developer/CommandLineTools
2% xcrun --show-sdk-path
3/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
4% xcrun --show-sdk-version
511.1
6% make C depends
7% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin20.3.0/share/config.site ./configure
8% make
9% src/qt/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs – no window is created.
Case B (SDK 11.1 compiled on Catalina, tested on Big Sur)
- build system: Catalina 10.15.7 (19H524) + Xcode 12.4 (12D4e)
0% xcodebuild -version
1Xcode 12.4
2Build version 12D4e
3% xcode-select --print-path
4/Applications/Xcode.app/Contents/Developer
5% xcrun --sdk macosx --show-sdk-path
6/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
7% xcrun --sdk macosx --show-sdk-version
811.1
9% make C depends
10% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin19.6.0/share/config.site ./configure
11% make
12% src/qt/bitcoin-qt -regtest -printtoconsole
Everything works just fine.
- test system: Big Sur 11.2.3 (20D91)
The binary compiled on Catalina has been moved to Big Sur.
0% ~/Downloads/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs – no window is created (the same behavior as in the case A).
Case C (SDK 10.15.6 from downloaded Xcode 11.7)
- system: Big Sur 11.2.3 (20D91)
0% sudo xcode-select --switch ~/Downloads/Xcode_11.7/Xcode.app
1% xcode-select --print-path
2/Users/hebasto1/Downloads/Xcode_11.7/Xcode.app/Contents/Developer
3% xcrun --show-sdk-path
4/Users/hebasto1/Downloads/Xcode_11.7/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
5% xcrun --show-sdk-version
610.15.6
7% make C depends
8% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin20.3.0/share/config.site ./configure
9% make
10% src/qt/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs – no window is created (the same behavior as in the case A).
Xcode 10.3 and older (SDK 10.14.6) does not work on Big Sur at all. (see https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes)
But building depends fail:
Case D (SDK 10.14.6 from downloaded Xcode 10.3)
- build system: Big Sur 11.2.3 (20D91) + Xcode 10.3 (10G8)
0% xcodebuild -version
1Xcode 10.3
2Build version 10G8
3% xcode-select --print-path
4/Applications/Xcode.app/Contents/Developer
5% xcrun --show-sdk-path
6/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
7% xcrun --show-sdk-version
810.14
9% make -C depends native_ds_store
The last command fails (looks like an infinite loop).