_kCVPixelBufferOpenGLCompatibilityKey link error

HI All,



I am upgrading an existing app from OpenGL ES to Metal by changing my existing app following "MixingMetalAndOpenGLRenderingInAView".

It was going ok until I imported the files

AAPLOpenGLMetalInteropTexture.h

AAPLOpenGLMetalInteropTexture.m



Now when I compile the project I get the error:-

Undefined symbols for architecture arm64:

"_kCVPixelBufferOpenGLCompatibilityKey", referenced from:

-[AAPLOpenGLMetalInteropTexture initWithMetalDevice:openGLContext:metalPixelFormat:size:] in AAPLOpenGLMetalInteropTexture.o

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)



the line of code is:-

NSDictionary* cvBufferProperties = @{

(__bridge NSString*)kCVPixelBufferOpenGLCompatibilityKey : @YES,

(__bridge NSString*)kCVPixelBufferMetalCompatibilityKey : @YES,

};


What am I doing wrong !!!!