Using WebKit.framework from WebKit nightly in Cocoa app?

后端 未结 1 1526
谎友^
谎友^ 2021-01-03 11:11

I\'m currently using WebView in a Cocoa app, I\'d also like to use the HTML5 File API, within webview (specifically FileReader). FileReader is not supported in the latest ve

相关标签:
1条回答
  • 2021-01-03 12:04

    If you mount the WebKit nightly build disk image, you can temporarily tell your app to use that library instead of the built-in WebKit by setting this environment variable:

    DYLD_FRAMEWORK_PATH=/Volumes/WebKit/WebKit.app/Contents/Frameworks/10.9
    

    To set this in Xcode 4, click on the Scheme popup and choose Edit Scheme. Next, click the Arguments tab and add a new environment variable, with the name DYLD_FRAMEWORK_PATH and the value /Volumes/WebKit/WebKit.app/Contents/Frameworks/10.9.

    Note that this is for development only, and will not work for end users.

    It is generally a really bad idea to use a custom version of WebKit in a shipping app, but if you absolutely must ship a development version of WebKit to your users, you should build it from source and link directly to that code. You would probably need to build WebCore as well. Yay, fun times! :-/

    0 讨论(0)
提交回复
热议问题