Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symbol(s) not found for architecture armv7s (linker command failed with exit code 1)

When I build in Xcode 5 for IOS7 I get this error:

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)

I notice that the error goes away if I remove the UIImage+Filter.h/m file and UIImageView+Filter.h/m

like image 981
Alessandro Avatar asked Jan 02 '14 16:01

Alessandro


1 Answers

Easy... Make sure you import CoreImage framework

like image 137
Alessandro Avatar answered Sep 26 '22 19:09

Alessandro