0

当我尝试构建我的项目时出现此错误。

Undefined symbols for architecture i386:
  "_OBJC_IVAR_$_UINavigationBar.images", referenced from:
      -[UINavigationBar(CustomImage) drawRect:] in AppDelegate.o
      -[UINavigationBar(CustomImage) setImagesNames:] in AppDelegate.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

0

转到您的 AppDelegate 类并检查您的 UINavigationBar 类别的包含。您的类别要么在项目中丢失,要么是私有的。我最好的猜测是它丢失了,或者当你创建它时你没有选中目标复选框。他们将其删除并重新添加。重新添加时要小心,以检查活动目标是否有文件。

于 2012-04-05T09:05:41.017 回答