Closed reinhardt1053 closed 1 month ago
The CEF 127.3.5 binaries which include Chromium 127.0.6533.120 are incompatible with CEF4Delphi 126.0.6478.183
I don't have a Mac and I can't test this issue at this moment but try this file and let me know if it crashes : https://cef-builds.spotifycdn.com/cef_binary_126.2.18%2Bg3647d39%2Bchromium-126.0.6478.183_macosx64.tar.bz2
Each CEF4Delphi release includes the link to the right CEF binaries in the announcement and in the "readme.md" file found inside the release package.
Same issue.
The Delphi demo called Delphi_FMX_Mac/FMXExternalPumpBrowser is working correctly in macOS 11 Big Sur.
The Lazarus demo called Lazarus_Mac/ExternalPumpBrowser is working correctly in macOS 12 Monterrey.
All those demos were tested with CEF4Delphi 127.3.5
Perhaps macOS 14 Sonoma has a new requirement but my guess is that the instructions you mention are incomplete. Sorry about that :(
Please follow this steps found in the readme file inside the ExternalPumpBrowser demo :
Hello,
I tried the above steps but I am experiencing the same issue. It must be something wrong with my installation or some new requirement introduced in MacOs 14 Sonoma.
I got a report of the Delphi_FMX_Mac/FMXExternalPumpBrowser demo working correctly in macOS 14 but that demo uses a browser in off-screen mode.
I noticed that the official cefclient for macOS has a new helper called "cefclient Helper (Alerts).app". I missed this issue : https://github.com/chromiumembedded/cef/issues/3181
However, the FMX demo works even without that helper.
I'll keep investigating...
It's crashing here.
The script that has to be executed is demos/Lazarus_Mac/ExternalPumpBrowser/create_mac_helper.sh
I need to investigate why Chromium thinks the OS version is not valid. Perhaps info.plist has to be updated?
I just uploaded a new CEF4Delphi version that checks the macOS version before initialization.
Using the -WM11.0 custom option in all the projects is enough to avoid the compatibility mode that was the cause of this issue.
I'll update the demos shortly.
Please, test the latest version and read the readme files.
CEF4Delphi may report an invalid macOS version. In that case, use the -WMxx.y custom option to set a higher minimum macOS version for that project. I haven't added that option to all the demos because it breaks them when you try to build them for a different OS.
You might also need to sign the application with an "Outgoing network socket" entitlement in the helpers.
Set LSUIElement=1 in the info.plist to hide the helpers in the dock.
More info about the switch needed to fix this issue here.
Added this information to the Wiki and closing.
Hello,
I followed the instructions found here https://www.briskbard.com/index.php?lang=en&pageid=cef#builddemo to build the ExternalPumpBrowser demo on MacOS 14 Sonoma and Lazarus x86_64-darwin.
From the folder CEF4Delphi-126.0.6478.183/demos/Lazarus_any_OS/AppHelper I executed the command:
./create_mac_helper_apps.sh ../../../bin/ExternalPumpBrowser.app
no errors reported.Launching ExternalPumpBrowser stops at TCefApplicationCore.DoMessageLoopWork
ExternalPumpBrowser App:
CEF4Delphi: CEF4Delphi-126.0.6478.183
CEF Binary used: cef_binary_127.3.5+g114ea2a+chromium-127.0.6533.120_macosx64
Full log: