Xcode CGRectZero错误

时间:2009-05-02 09:55:45

标签: iphone xcode core-graphics

编译代码时出现以下错误

      "_CGRectZero", referenced from:
          _CGRectZero$non_lazy_ptr in RootViewController.o
          _CGRectZero$non_lazy_ptr in SecondViewController.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

构建失败(1个错误)

有人可以告诉我解决方案吗?

1 个答案:

答案 0 :(得分:10)

听起来你的项目缺少一个框架。

右键点击项目的群组&中的框架文件夹文件列,然后选择添加> 现有框架......

从框架列表中选择 CoreGraphics.framework

重建后,此错误应该消失(除非是其他内容)。