2012-02-29 8 views
8

में कार्यान्वित किया जाता है जब मैं rspec चलाने मैं वेबकिट से चेतावनी के एक धसान मिलता है। मैं capybara-webkit और qtbrew से स्थापित कर रहा हूं। मुझे यकीन है कि इन्हें ठीक करना अच्छा लगेगा। आपकी सहायता के लिए धन्यवाद.Capybara वेबकिट क्रम चेतावनी: कक्षा दोनों

चेतावनी की तरह:

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. 

संपादित करें "दोनों में कार्यान्वित": मैं केवल जवाब है कि शामिल qtbrew से स्थापित करने में रुचि रखते हूँ। धन्यवाद।

उत्तर

2

मैं क्यूटी लाइब्रेरी के पूर्व-निर्मित संस्करण को डाउनलोड और उपयोग करने की सलाह देता हूं।

मैं मैकपॉर्ट्स का उपयोग करके निर्माण करने की कोशिश कर रहा था और इसमें कठिनाई थी। क्यूटी साइट के लिए प्रीबिल्ट बाइनरी है। मेरे मामले में, यह ठीक काम कर रहा है।

मैं MacOS एक्स 10.6 और 10.7

+1

मैंने सोचा था कि 'brew' पहले से बने' qt' इस्तेमाल किया। आपके 'qt' से' brew' 'qt' अलग कैसे है? कृपया ध्यान दें कि मैं मैकपॉर्ट्स का उपयोग नहीं कर रहा हूं। –

+0

मैं ब्रू का उपयोग नहीं कर रहा हूं इसलिए मैं गलत समझ सकता हूं कि ब्रूफ़ कॉन्फ़िगरेशन कैसे काम करता है, लेकिन https://github.com/mxcl/homebrew/blob/master/Library/Formula/qt.rb यह कॉन्फ़िगर करना और बनाना यह। – shigeya

+0

यह नहीं समझाता कि त्रुटि क्यों होती है, लेकिन मुझे संदेह है कि यह वास्तव में चेतावनियों से छुटकारा पाता है जिससे बक्षीस प्रदान किया जाता है। – Obie

0

क्षमा याचना पर लगभग एक वर्ष के लिए पहले से बने क्यूटी साथ capybara-वेबकिट उपयोग कर रहे हैं, मुद्दों के बिना ... इस @ shigeya के जवाब पर टिप्पणी के रूप अंतर्गत आता है।

प्री-बिल्ट क्यूटी बाइनरी इस समस्या को ठीक नहीं करता है। 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

इसके अलावा, जब तक यह सवाल का जवाब नहीं देता है, मैंने पाया कि कैपिबरा-वेबकिट से [poltergeist] (https://github.com/jonleighton/poltergeist) पर स्विचिंग (ब्रूक स्थापित फ़ैंटोमज पर आधारित जो वेबकिट का उपयोग करता है) चेतावनी दी जाती है दूर। –