【发布时间】:2012-12-16 21:10:35
【问题描述】:
尝试使用 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 包含在目标配置的“链接框架和库”列表中。
仅当我尝试使用 kCGImagePropertyExifBodySerialNumber 或 kCGImagePropertyExifLensModel 时才会发生这种情况。使用同一个项目kCGImagePropertyExifFocalLength,kCGImagePropertyExifExposureTime没有任何问题
有什么想法吗?
【问题讨论】:
标签: objective-c macos cocoa linker javax.imageio