我正在用Cocoa Webkit開發OS X上的應用程序。 我已經實現了我的自定義WebPolicyDecisionListener,但我得到了休耕錯誤:Cocoa Webkit WebPolicyDecisionListener錯誤實現
Class WebPolicyDecisionListener is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit and /Users/cagryInside/Library/Developer/Xcode/DerivedData/MacKeep-aejgqnnxruvgutahmyngzygezfse/Build/Products/Debug/MacKeep.app/Contents/MacOS/MacKeep. One of the two will be used. Which one is undefined.
這裏是我的代碼:
WebPolicyDecisionListener* listener = [[WebPolicyDecisionListener alloc] init];
[[self webView] setPolicyDelegate:listener];
感謝您的幫助。