There is misunderstanding, I'm afraid I haven't explained it clearly so I've reproduced simple steps.
Let's say I want to run original cefsimple.app at this location:
/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/
testtest.app/Contents/MacOS/
cefsimple.appIt is contained in app bundle testtest.app. It is main application which has no clue about CEF using cefsimple just as worker process.
When I try to start cefsimple using:
open -a "/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Contents/MacOS/cefsimple.app"It won't run, because it will complain it cannot find cef framework.
So I've modified the cefsimple_mac.mm by inserting two lines setting framework_dir_path and browser_subprocess_path:
- Code: Select all
// Specify CEF global settings here.
CefSettings settings;
CefString(&settings.framework_dir_path) = L"/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Contents/MacOS/cefsimple.app/Contents/Frameworks/Chromium Embedded Framework.framework";
CefString(&settings.browser_subprocess_path) = L"/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Contents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app";
// SimpleApp implements application-level callbacks for the browser process.
// It will create the first browser instance in OnContextInitialized() after
// CEF has initialized.
CefRefPtr<SimpleApp> app(new SimpleApp);
// Initialize CEF for the browser process.
CefInitialize(main_args, settings, app.get(), NULL);
Now It opens the browser window, but it is empty and this is in the cefsimple_debug.log:
- Code: Select all
[0414/100216.768811:ERROR:launch_mac.cc(164)] posix_spawnp(/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Co
ntents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app): -13 Permission denied
[0414/100216.773592:ERROR:launch_mac.cc(164)] posix_spawnp(/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Co
ntents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app): -13 Permission denied
[0414/100216.777742:ERROR:launch_mac.cc(164)] posix_spawnp(/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Co
ntents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app): -13 Permission denied
[0414/100216.779642:ERROR:gpu_process_host.cc(370)] !GpuDataManagerImpl::GpuAccessAllowed()
[0414/100216.779773:ERROR:browser_gpu_channel_host_factory.cc(120)] Failed to launch GPU process.
[0414/100217.011000:ERROR:gpu_process_host.cc(370)] !GpuDataManagerImpl::GpuAccessAllowed()
[0414/100217.012321:ERROR:launch_mac.cc(164)] posix_spawnp(/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Co
ntents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app): -13 Permission denied
[0414/100217.675546:ERROR:gpu_process_host.cc(370)] !GpuDataManagerImpl::GpuAccessAllowed()
[0414/100217.676395:ERROR:launch_mac.cc(164)] posix_spawnp(/Users/rado/Library/Developer/Xcode/DerivedData/bin/Products/Debug/testtest.app/Co
ntents/MacOS/cefsimple.app/Contents/Frameworks/cefsimple Helper.app): -13 Permission denied
[0414/100217.678240:ERROR:service_manager_context.cc(252)] Attempting to run unsupported native service: /Users/rado/Library/Developer/Xcode/
DerivedData/bin/Products/Debug/testtest.app/Contents/MacOS/cefsimple.app/Contents/Frameworks/Chromium Embedded Framework.framework/content_re
nderer.service
Do you have idea what could be wrong? I'm trying distribution cef_binary_3.3325.1756.g6d8faa4_macosx64.