Open razamattaz opened 1 year ago
I'm experiencing the same issues on an Intel Mac. Full stacktrace below. I don't know anything about the macOS SDK but it appears that the issue is due to changes in it since the most recent changes to antipopd.
$ clang -framework AppKit -framework IOKit -arch i386 -arch x86_64 -o antipopd antipopd.m
In file included from antipopd.m:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h:9:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h:32:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:1050:3: error: unknown type name 'ATSFSSpec'; did you mean 'FSSpec'?
1050 | ATSFSSpec * oFile) ATS_UNAVAILABLE;
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:357:41: note: 'FSSpec' declared here
357 | typedef struct FSSpec FSSpec;
| ^
In file included from antipopd.m:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:260:39: error: unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'?
260 | @property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h:19:12: note: 'NSAnimationContext' declared here
19 | @interface NSAnimationContext : NSObject
| ^
In file included from antipopd.m:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:102:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h:234:12: error: cannot define category for undefined class 'NSItemProvider'
234 | @interface NSItemProvider (NSCloudKitSharing)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h:15:17: note: forward declaration of class here
15 | @class NSImage, NSItemProvider;
| ^
In file included from antipopd.m:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:257:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h:16:12: error: cannot define category for undefined class 'NSItemProvider'
16 | @interface NSItemProvider (NSItemSourceInfo)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h:15:17: note: forward declaration of class here
15 | @class NSImage, NSItemProvider;
| ^
antipopd.m:57:1: warning: 'NSSpeechSynthesizer' is deprecated: first deprecated in macOS 14.0 - Use AVSpeechSynthesizer in AVFoundation instead [-Wdeprecated-declarations]
57 | NSSpeechSynthesizer *speech = nil;
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h:81:12: note: 'NSSpeechSynthesizer' has been explicitly marked deprecated here
81 | @interface NSSpeechSynthesizer : NSObject
| ^
antipopd.m:62:40: warning: 'NSSpeechSynthesizer' is deprecated: first deprecated in macOS 14.0 - Use AVSpeechSynthesizer in AVFoundation instead [-Wdeprecated-declarations]
62 | speech = [[NSSpeechSynthesizer alloc] initWithVoice:nil];
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h:81:12: note: 'NSSpeechSynthesizer' has been explicitly marked deprecated here
81 | @interface NSSpeechSynthesizer : NSObject
| ^
antipopd.m:62:47: warning: 'initWithVoice:' is deprecated: first deprecated in macOS 14.0 - Use AVSpeechSynthesizer in AVFoundation instead [-Wdeprecated-declarations]
62 | speech = [[NSSpeechSynthesizer alloc] initWithVoice:nil];
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h:83:1: note: 'initWithVoice:' has been explicitly marked deprecated here
83 | - (nullable instancetype)initWithVoice:(nullable NSSpeechSynthesizerVoiceName)voice;
| ^
antipopd.m:74:13: warning: 'startSpeakingString:' is deprecated: first deprecated in macOS 14.0 - Use AVSpeechSynthesizer in AVFoundation instead [-Wdeprecated-declarations]
74 | [speech startSpeakingString:@" "];
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h:85:1: note: 'startSpeakingString:' has been explicitly marked deprecated here
85 | - (BOOL)startSpeakingString:(NSString *)string;
| ^
4 warnings and 4 errors generated.
Not a criticism, but it doesn't compile on a bog standard (in this case M1) Macbook Pro.
10 errors are generated similar to: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h:9: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:248:39: error: unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'? @property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
Thanks for coding the project, amazing how annoying a pop in the ears can be every 20 seconds!