2012-02-29 172 views
8

中实现当我运行rspec时,我从webkit收到一系列警告。我正在使用从brew安装的capybara-webkitqt。我当然很想解决这些问题。谢谢你的帮助。Capybara Webkit运行时警告:类在

警告,如:

objc[97388]: Class WebCoreMovieObserver is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit 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. 
objc[97388]: Class WebCoreSharedBufferData is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit 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. 
objc[97388]: Class WebVideoFullscreenWindow is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[97388]: Class WebVideoFullscreenController is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[97388]: Class WebVideoFullscreenHUDWindowController is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[97388]: Class WebVideoFullscreenHUDWindow is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[97388]: Class WebWindowFadeAnimation is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[97388]: Class WebWindowScaleAnimation is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 

EDIT “在这两个实施了”:我只是在涉及从brew安装qt答案感兴趣。谢谢。

回答

2

我建议下载并使用预编译版本的Qt库。

我试图建立使用MacPorts并有困难。 Qt网站已经为此构建了二进制文件。在我的情况下,它工作正常。

我一直在MacOS X 10.6和10.7

+1

我以为'brew'使用了预建的'qt'。 'brew'的'qt'与'qt'有什么不同?请注意,我没有使用MacPorts。 – 2012-03-07 15:52:23

+0

我没有使用brew,所以我可能会误解brew的配置是如何工作的,但根据 https://github.com/mxcl/homebrew/blob/master/Library/Formula/qt.rb 它的配置和制作它。 – shigeya 2012-03-08 00:32:17

+0

没有解释为什么会出现错误,但我怀疑它确实摆脱了如此奖励赏金的警告。 – Obie 2012-03-13 00:06:58

0

道歉使用水豚,WebKit的与预建的Qt近一年,没有问题......这属于上@ shigeya的答案评论。

预构建的Qt二进制文件不能解决这个问题。刚刚安装了4.8.2,与brew remove --force qt一起,导致:

objc[67716]: Class WebCoreMovieObserver is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit 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. 
objc[67716]: Class WebCoreSharedBufferData is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit 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. 
objc[67716]: Class WebVideoFullscreenWindow is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[67716]: Class WebVideoFullscreenController is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[67716]: Class WebVideoFullscreenHUDWindowController is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[67716]: Class WebVideoFullscreenHUDWindow is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[67716]: Class WebWindowFadeAnimation is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
objc[67716]: Class WebWindowScaleAnimation is implemented in both /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 
+0

此外,虽然这并没有回答这个问题,但我发现从capybara-webkit切换到[poltergeist](https://github.com/jonleighton/poltergeist)(基于brew安装的使用webkit的phantomjs)使得警告消失远。 – 2012-05-25 18:33:53