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

我查看了 FirstViewController、reachability.h 和reachability.m——它的定义很明确!我什至添加了 SystemConfiguration.Framework,以及 Reachability.m 在编译列表中。

有任何想法吗?我快疯了!附图片。

http://i.imgur.com/uw4Zb.png

4

1 回答 1

0
  • 尝试从您的 xCode 项目中删除对 Reachability.h 和 Reachability.m 文件的引用。- 确保它从编译源中消失。
  • 搜索您的项目文件夹,确保其中没有 Reachability.h 和 Reachability.m 文件的重复项
  • Command+Shift+K 清理项目;
  • 将 Reachability.h 和 Reachability.m 添加回 xCode 项目;

希望这会有所帮助。

于 2012-12-27T13:24:41.110 回答