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

房东的猫 提交于 2019-12-23 11:55:13

问题


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


回答1:


Easy... Make sure you import CoreImage framework



来源:https://stackoverflow.com/questions/20887624/symbols-not-found-for-architecture-armv7s-linker-command-failed-with-exit-cod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!