I'm using WebKit in an OS X app via the JUCE WebBrowserComponent, a lightweight wrapper around Apple's WebView
Objective-C class.
I'm compiling on OS X 10.12 with a deployment target of 10.7.
The issue I'm having is that on OS X 10.8, the version of WebKit used by the WebView
seems to be different to that used by Safari and I can't figure out how the WebKit version is selected or why they are different.
Running otool -L
on Safari, gives me:
otool -L /System/Library/PrivateFrameworks/Safari.framework/Versions/A/Safari | grep WebKit
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 536.30.1)
/System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2 (compatibility version 1.0.0, current version 536.30.1)
Running otool -L
on the Juce demo gives me:
otool -L JuceDemo | grep WebKit
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 602.2.14)
Firstly, why are the "current version" numbers different, for apparently the same linked framework?
Also, if I point the respective applications at http://browserspy.dk/webkit.php It gives me a AppleWebKit version of 600.8.9 for Safari and a version of 536.30.1 for JUCE Demo.
What accounts for these different version numbers, and how can I configure my application so that my WebView
uses the "600.8.9" version of WebKit used by Safari?