在Cocoa应用中每晚使用WebKit中的WebKit.framework? [英] Using WebKit.framework from WebKit nightly in Cocoa app?

查看:175
本文介绍了在Cocoa应用中每晚使用WebKit中的WebKit.framework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Cocoa应用程序中使用WebView,我也想在webview(特别是FileReader)中使用HTML5 File API。 FileReader在最新版本的WebKit不支持,但它在WebKit夜间支持。我如何从webkit每天使用WebKit.framework为我的应用程序?

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 version of WebKit, but it is supported in WebKit nightly. How would I go about using the WebKit.framework from webkit nightly for my app?

我试过:
1.每晚安装webkit并添加WebKit .framework在WebKit.app到我的可可应用程序,没有启用FileReader ...
2.更改import语句指向WebKit.framework WebKit.app ...中也没有工作。 / p>

I've tried: 1. installing webkit nightly and adding the WebKit.framework within WebKit.app to my cocoa app, that did not enable FileReader... 2. Changing the import statement to point to the WebKit.framework within WebKit.app... that did not work either.

推荐答案

如果你挂载WebKit的夜间构建磁盘映像,你可以暂时告诉你的应用程序使用该库而不是内置WebKit设置此环境变量:

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

要在Xcode 4中设置此选项,请点击计划弹出窗口并选择编辑方案。接下来,点击参数标签,并添加名为 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.

在运送应用程式中使用自订版本的WebKit通常是个不错的想法,但如果您绝对必须运送开发版本的WebKit给你的用户,你应该从源代码构建它并直接链接到该代码。你可能需要构建WebCore。 Yay,有趣的时光! : - /

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! :-/

这篇关于在Cocoa应用中每晚使用WebKit中的WebKit.framework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆