嘗試使用ImageIO框架從圖像準備元數據(例如,kCGImagePropertyExifBodySerialNumber
或kCGImagePropertyExifLensModel
)。不幸的是在編譯鏈接ImageIO鏈接器錯誤?
有一個煩惱:
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
是進口corurse,並ImageIO.framework
包括在目標配置列表中的「鏈接的框架和庫」上。
只有當我嘗試使用kCGImagePropertyExifBodySerialNumber
或kCGImagePropertyExifLensModel
時纔會發生。同樣的項目kCGImagePropertyExifFocalLength
,kCGImagePropertyExifExposureTime
使用沒有任何問題
任何想法?
符號既不是10.7 SDK也不是10.8 SDK,但在系統庫(我正在運行10.8.2)中可以找到。 – maseth