Closed hanxue closed 8 years ago
Prior to the OS X 10.11 SDK, <WebUIDelegate>
was an informal protocol. In other words, since you're building against the OS X 10.10 SDK, the WebUIDelegate is defined as:
@interface NSObject (WebUIDelegate)
// various methods
@end
In the OS X 10.11 SDK, it became a formal protocol.
You can do a couple of things.
CHMDocument.h
@protocol WebUIDelegate;
@interface CHMDocument : NSDocument <NSToolbarDelegate, WebPolicyDelegate, WebResourceLoadDelegate, WebFrameLoadDelegate, WebUIDelegate> {
That may allow the code to compile, though you may get warnings about not finding a definition for the protocol.
3.Alternatively, you could simply remove WebUIDelegate
from the list of protocols CHMDocument conforms to, by changing:
@interface CHMDocument : NSDocument <NSToolbarDelegate, WebPolicyDelegate,
WebResourceLoadDelegate, WebFrameLoadDelegate, WebUIDelegate> {
to:
@interface CHMDocument : NSDocument <NSToolbarDelegate, WebPolicyDelegate,
WebResourceLoadDelegate, WebFrameLoadDelegate> {
Looking into this more, and will try to make the project as backward compatible as possible.
This issue should now be fixed in bfc5d047b260a36cfa38757a8e08065b1eaa5bad.
My machine has the following configuration
OSX 10.10.5 Xcode 6.4 Build version 6E35b
I run the following build command
And got this error
Full output of
xcodebuild
here https://gist.github.com/hanxue/c39b6ea7e8457ff2130278ff11c19b03