2012-02-29 9 views
8

Durante l'esecuzione di rspec viene visualizzato un gran numero di avvisi da Webkit. Sto usando capybara-webkit e qt installato da brew. Mi piacerebbe sicuramente sistemarli. Grazie per l'aiuto.Avviso di runtime di Capybara Webkit: la classe è implementata in entrambi

avvertimenti come: "implementato sia in"

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: Sono interessato solo a risposte che implicano qt installato da brew. Grazie.

risposta

2

Si consiglia di scaricare e utilizzare la versione predefinita della libreria Qt.

Stavo cercando di creare utilizzando MacPorts e ho avuto difficoltà. Il sito Qt ha binari precompilati per questo. Nel mio caso, sta funzionando bene.

Sto usando capibara-webkit con pre-costruito Qt per quasi un anno, senza problemi su MacOS X 10.6 e 10.7

+1

ho pensato 'brew' usato un pre-costruito' qt'. In che modo 'brew' è' qt' diverso dal tuo 'qt'? Si prega di notare che non sto usando MacPorts. –

+0

Non sto usando birra così che io possa fraintendere come infuso lavoro di configurazione, ma secondo https://github.com/mxcl/homebrew/blob/master/Library/Formula/qt.rb E 'la configurazione e il processo esso. – shigeya

+0

Non spiega perché si verifica l'errore, ma ho il sospetto che in effetti si sbarazzi degli avvertimenti, quindi l'assegnazione della taglia. – Obie

0

Apologies ... questo appartiene come un commento sulla risposta di @ shigeya.

Il binario Qt preconfigurato non risolve questo problema. Installato 4.8.2 solo ora, insieme a brew remove --force qt, con conseguente:

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

Inoltre, anche se questo non risponde alla domanda, ho scoperto che il passaggio da capybara-webkit a [poltergeist] (https://github.com/jonleighton/poltergeist) (basato su brew installato phantomjs che usa webkit) ha fatto andare gli avvertimenti lontano. –