架构armv7s找不到符号(链接器命令失败,退出代码为1)

时间:2014-01-02 16:50:06

标签: objective-c linker-errors

当我为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

,错误就会消失

1 个答案:

答案 0 :(得分:9)

简单...确保导入CoreImage框架