Declaration of 'CGImageRef' must be imported from module 'CoreGraphics.CGImage' before it is required on MacOS 12
It's probably since i have update to MacOS 12 i get this error because my code was working fine before. I have make small changes but look more related to MacOS update.
The error:
Declaration of 'CGImageRef' must be imported from module 'CoreGraphics.CGImage' before it is required
is in VLCMediaThumbnailer.h line 70:
@property (readwrite, assign, nonatomic) CGImageRef thumbnail;
Is the problem on my side or should i wait a update for MacOS or VLC ?
in top of the file there is:
#if TARGET_OS_IPHONE
# import <CoreGraphics/CoreGraphics.h>
#endif
I guess it import only on iphone target but since i want a MacOS target, CoreGraphics is not imported and CGImageRef later is not recognized.