1

我正在尝试在应用程序中使用 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)

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

4

1 回答 1

4

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

于 2012-04-03T12:39:22.543 回答