AQGridView没有链接

时间:2012-04-02 23:37:52

标签: iphone xcode ios5 aqgridview

我正在尝试在应用中使用AQGridView。我将所有文件复制到我的项目中,但我一直收到错误:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_AQGridView", referenced from:
      objc-class-ref in GridViewController.o
  "_OBJC_CLASS_$_AQGridViewCell", referenced from:
      _OBJC_CLASS_$_GridViewCell in GridViewCell.o
  "_OBJC_METACLASS_$_AQGridViewCell", referenced from:
      _OBJC_METACLASS_$_GridViewCell in GridViewCell.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我做错了什么?我已经添加了所有必要的文件

1 个答案:

答案 0 :(得分:4)

从项目中删除所有AQGridView文件,然后重新添加,但请确保在检查构建目标之前添加Add to targets复选框。似乎文件已正确添加,但未正确链接到目标。