2012-02-29 28 views
8

Tôi nhận được một loạt cảnh báo từ webkit khi chạy rspec. Tôi đang sử dụng capybara-webkitqt được cài đặt từ brew. Tôi chắc chắn sẽ thích sửa chúng. Cảm ơn bạn đã giúp đỡ.Cảnh báo thời gian chạy của Capybara Webkit: Lớp được triển khai trong cả hai

Cảnh báo như: "thực hiện trong cả hai"

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: Tôi chỉ quan tâm đến câu trả lời liên quan đến qt cài đặt từ brew. Cảm ơn.

Trả lời

2

Tôi khuyên bạn nên tải xuống và sử dụng phiên bản thư viện Qt được tạo sẵn.

Tôi đã cố gắng xây dựng bằng MacPorts và gặp khó khăn. Trang Qt có nhị phân dựng sẵn cho điều đó. Trong trường hợp của tôi, nó hoạt động tốt.

Tôi đã sử dụng Capybara-webkit với pre-built Qt cho gần một năm, không có vấn đề về hệ điều hành MacOS X 10.6 và 10.7

+1

Tôi nghĩ 'brew' đã sử dụng' qt' được tạo sẵn. 'Brew''s' qt' khác với 'qt' của bạn như thế nào? Xin lưu ý rằng tôi không sử dụng MacPorts. –

+0

Tôi không sử dụng bia nên tôi có thể hiểu sai cách cấu hình của máy pha chế, nhưng theo https://github.com/mxcl/homebrew/blob/master/Library/Formula/qt.rb Đó là định cấu hình và tạo nó. – shigeya

+0

Không giải thích tại sao lỗi xảy ra, nhưng tôi nghi ngờ rằng nó thực sự loại bỏ các cảnh báo để trao tiền thưởng. – Obie

0

Xin lỗi ... này thuộc như một bình luận về câu trả lời @ shigeya của.

Mã nhị phân Qt được tạo sẵn không khắc phục được sự cố này. Đã cài đặt 4.8.2 ngay bây giờ, cùng với brew remove --force qt, dẫn đến:

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

Ngoài ra, trong khi điều này không trả lời được câu hỏi, tôi thấy rằng việc chuyển từ capybara-webkit sang [poltergeist] (https://github.com/jonleighton/poltergeist) (dựa trên các phantomj đã được cài đặt trong đó sử dụng webkit) đã làm cho các cảnh báo đi xa. –

Các vấn đề liên quan