当我为IOS7构建Xcode 5时,我收到此错误:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CIFilter", referenced from:
objc-class-ref in UIImage+Filter.o
"_kCIInputImageKey", referenced from:
-[UIImage(Filter) filterWithPreset:] in UIImage+Filter.o
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in UIImage+Filter.o
"_OBJC_CLASS_$_CIContext", referenced from:
objc-class-ref in UIImage+Filter.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我注意到如果删除UIImage + Filter.h / m文件和UIImageView + Filter.h / m
,错误就会消失答案 0 :(得分:9)
简单...确保导入CoreImage框架