我正在尝试在我的ios6项目中使用EGOTableViewPullRefresh但是在构建时我无法通过链接问题。将源包含到我的项目中后,将-fno-objc-arc标志添加到EGORefreshTableHeaderView.m然后对源进行所有必要的更改,以便我可以使用ARC构建(删除'release'等)我遇到了以下链接问题:
Undefined symbols for architecture i386:
"_CATransform3DIdentity", referenced from:
-[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView.o
"_CATransform3DMakeRotation", referenced from:
-[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView.o
"_OBJC_CLASS_$_CALayer", referenced from:
objc-class-ref in EGORefreshTableHeaderView.o
"_OBJC_CLASS_$_CATransaction", referenced from:
objc-class-ref in EGORefreshTableHeaderView.o
"_kCAGravityResizeAspect", referenced from:
-[EGORefreshTableHeaderView initWithFrame:arrowImageName:textColor:] in EGORefreshTableHeaderView.o
"_kCATransactionDisableActions", referenced from:
-[EGORefreshTableHeaderView setState:] in EGORefreshTableHeaderView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有没有人使用EGOTableViewPullRefresh遇到这个问题?
谢谢!
答案 0 :(得分:7)
您需要包含QuartzCore库框架以进行pull-to-refresh以正确链接。
这是通过转到目标页面(单击Xcode布局顶部左侧列上的目标图标),选择“构建阶段”选项卡,单击以打开“链接二进制文件库”然后单击“确定”来实现的。 +'按钮,开始输入“QuartzCore”并选择QuartzCore框架。
这应该为您解决这些链接错误。
答案 1 :(得分:2)
确保添加了QuartzCore框架。