尝试使用 ImageIO 框架从图像中准备元数据(例如kCGImagePropertyExifBodySerialNumber或 )。kCGImagePropertyExifLensModel
不幸的是在编译期间链接器有一个麻烦:
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当然是导入的,并且ImageIO.framework包含在目标配置中的“链接框架和库”列表中。
仅当我尝试使用kCGImagePropertyExifBodySerialNumberor 时才会发生这种情况kCGImagePropertyExifLensModel。同一个项目kCGImagePropertyExifFocalLength,kCGImagePropertyExifExposureTime使用没有任何问题
有任何想法吗 ?