Use of undeclared identifier 'kAEDoNotAutomaticallyAddAnnotationsToEvent'

Compiling a Cocoa project and getting:


/Applications/Xcode_10_2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:24:38: Use of undeclared identifier 'kAEDoNotAutomaticallyAddAnnotationsToEvent'


OSX 10.14.4

Xcode 10.2.1 (10E1001)


Any help appreciated, Thankis

I tested in 10.2.1 and it works.


Make sure you add


import Cocoa

Use of undeclared identifier 'kAEDoNotAutomaticallyAddAnnotationsToEvent'
 
 
Q