找不到体系结构armv7的符号(链接器命令失败,退出代码为1) [英] symbol(s) not found for architecture armv7s (linker command failed with exit code 1)

查看:290
本文介绍了找不到体系结构armv7的符号(链接器命令失败,退出代码为1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为IOS7构建Xcode 5时,出现此错误:

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)

我注意到,如果删除UIImage + Filter.h/m文件和UIImageView + Filter.h/m,错误就会消失

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

推荐答案

容易...确保导入CoreImage框架

Easy... Make sure you import CoreImage framework

这篇关于找不到体系结构armv7的符号(链接器命令失败,退出代码为1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆