I guess I know why it happens, but unfortunately I'm unable to find a solution on my own...
I codesigned both, the cefsimple and cefsimple_Helper, I'm using Xcode and a pretty original code base.
When I start the cefsimple_Helper directly it immediately crashes:
I believe it's because the Chromium Embedded Framework.framework is not bundled directly and starting the helper directly is not intended at all.
So, why did I try to launch the helper directly?
My issue is, that I don't know why my code for Javascript integration isn't invoked at all.
I understood that on macOS I need the sub-process model and for me it looks like the helper would need to create an instance of a class that implements CefApp and some other interfaces like CefRenderProcessHandler, depending on what I want to do..., like the GeneralUsage docs explain...
- Code: Select all
// Optional implementation of the CefApp interface.
CefRefPtr<MyApp> app(new MyApp);
But when I try to set a breakpoint in the main() of the cefsimple_Helper and run the cefsimple from Xcode, the breakpoint is not reached.
So I don't know if the helper is even executed or if I need a better debug configuration for this case?
I was googleing, debugging and trying now for a few hours and finally decided to post a question here because I feel stuck.
I'm sorry, I'm a beginner with C++ and Obj-C but I'm willing to learn fast and read a lot
Thanks a lot!
Aron