Thanks for the work to support CEF on the Apple Silicon (M1) processors.
Is it expected (or known) that it does not work in a Debug build?
1. Download the spotify build for arm64:
https://cef-builds.spotifycdn.com/cef_b ... 64.tar.bz2
2. Before expanding the archive you probably want to remove the quarantine xattr from the file:
xattr -c ~/Downloads/cef_binary*.bz2
3. Expand the bz2
4. Configure and build:
- Code: Select all
cd cef...
mkdir build && cd build
cmake .. -G Xcode -DPROJECT_ARCH="arm64"
open cef.xcodeproj
build and launch Debug cefclient.app
It launches, but the window stays white. I see the following in the console:
- Code: Select all
2020-12-07 10:39:32.075750-0500 cefclient Helper (GPU)[57258:13510473] [1207/103932.075262:ERROR:vt_video_encode_accelerator_mac.cc(515)] VTCompressionSessionCreate failed: -12908
[1207/103932.075262:ERROR:vt_video_encode_accelerator_mac.cc(515)] VTCompressionSessionCreate failed: -12908
When I launch in a Release build I don't see the above error in the console.
I'm running on an Apple Developer Transition Kit. macOS Big Sur 11.0.1. Xcode version 12.2.
Note, when I build with ninja, it crashes on launch with the crash reporting saying "Termination Reason: Namespace CODESIGNING, Code 0x2". I suppose I need to sign it, and Xcode does this automatically?
Thanks,
Rob