[webkit-help] WebKit2 warnings: "Class <blah> is implemented in both <webkit2 path> and <webkit path>. One of the two will be used. Which one is undefined."

Jarek Foksa jarek at kiwi-themes.com
Fri Sep 2 01:53:20 PDT 2011


When running an app that uses WebKit2 as private framework (shipped
with app bundle) I'm getting a dozen of warnings which look like those
two:

objc[89421]: Class WTFMainThreadCaller is implemented in both
/Users/user/apps/test/mac/build/Release/Test.app/Contents/MacOS/../Frameworks/WebKit2.framework/Versions/A/../../../JavaScriptCore.framework/Versions/A/JavaScriptCore
and /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore.
One of the two will be used. Which one is undefined.

objc[89446]: Class DOMHTMLDListElement is implemented in both
/Users/user/apps/test/mac/build/Release/Test.app/Contents/MacOS/../Frameworks/WebKit2.framework/Versions/A/../../../WebCore.framework/Versions/A/WebCore
and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.
One of the two will be used. Which one is undefined.

It looks like Quartz.framework and DataDetectors.framework are
responsible for pulling WebKit version provided by system because
after moving system WebKit frameworks away and running my app again
I'm getting:

011-09-02 10:42:10.645 Boxy[89559:703] NSSoftLinking - The Quartz
framework's library couldn't be loaded from
/System/Library/Frameworks/Quartz.framework/Versions/A/Quartz.
2011-09-02 10:42:32.834 Boxy[89559:703] NSSoftLinking - The
DataDetectors framework's library couldn't be loaded from
/System/Library/PrivateFrameworks/DataDetectors.framework/Versions/A/DataDetectors.

Is it possible to compile WebKit frameworks (WebKit2, WebCore,
JavaScriptCore) so that they don't clash with system frameworks? I
guess that renaming all classes is not an option.


More information about the webkit-help mailing list