码迷,mamicode.com
首页 > 其他好文 > 详细

添加第三方类库造成的Undefined symbols for architecture i386:编译错误

时间:2014-10-14 13:00:18      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:http   color   io   使用   ar   for   文件   sp   art   

在使用下拉刷新类库EGORefreshTableHeaderView的时候,将资源文件添加到工程中,但是忘记假如QuartzCore.framework框架,造成编译错误:

 

Undefined symbols for architecture i386:

  "_CATransform3DMakeRotation", referenced from:

      -[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView-6F75314CE1079327.o

  "_OBJC_CLASS_$_CALayer", referenced from:

      objc-class-ref in EGORefreshTableHeaderView-6F75314CE1079327.o

  "_OBJC_CLASS_$_CATransaction", referenced from:

      objc-class-ref in EGORefreshTableHeaderView-6F75314CE1079327.o

  "_CATransform3DIdentity", referenced from:

      -[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView-6F75314CE1079327.o

  "_kCAGravityResizeAspect", referenced from:

      -[EGORefreshTableHeaderView initWithFrame:arrowImageName:textColor:] in EGORefreshTableHeaderView-6F75314CE1079327.o

  "_kCATransactionDisableActions", referenced from:

      -[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView-6F75314CE1079327.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

bubuko.com,布布扣

 

 

解决方法:targets——>build phases——>link binary with libraries——>QuartzCore.framework

 

当添加其他类库的时候也可能因为没有添加framework或者是它们依赖的库同样也会出现这样错误。

添加第三方类库造成的Undefined symbols for architecture i386:编译错误

标签:http   color   io   使用   ar   for   文件   sp   art   

原文地址:http://www.cnblogs.com/clumsy1006/p/4023947.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!