Trying to ready metadata (e.g kCGImagePropertyExifBodySerialNumber
or kCGImagePropertyExifLensModel
) from images using ImageIO framework.
Unfortunately during the compilation linker has a trouble:
Undefined symbols for architecture x86_64:
"_kCGImagePropertyExifBodySerialNumber", referenced from:
-[AppDelegate applicationDidFinishLaunching:] in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ImageIO/CGImageProperties.h
is of corurse imported, and ImageIO.framework
is included on the list "Linked Frameworks and Libraries" in target configuration.
It happends only when I'm trying to use kCGImagePropertyExifBodySerialNumber
or kCGImagePropertyExifLensModel
. It the same project kCGImagePropertyExifFocalLength
, kCGImagePropertyExifExposureTime
are used without any problems
Any ideas ?