可达性iOS 5.1(iPad) [英] Reachability iOS 5.1 (iPad)

查看:184
本文介绍了可达性iOS 5.1(iPad)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前尝试在iPad上使用iOS 5.1中的Reachability。
我试图使用 Tony Million on Github 进行修改。

I currently try to use Reachability in iOS 5.1 on iPad. There is a modification by Tony Million on Github which I tried to use.

不幸的是在我的项目中它不起作用!
我将他的项目与我的项目进行了比较,并没有发现任何差异。我也尝试硬拷贝他的示例代码但它仍然无效!!! (是的,我添加了SystemConfiguration.framework)

Unfortunately in my project it didn't work! I compared his project to mine and didn't find any differences. I also tried to hardcopy his example code But it still doesn't work!!! (Yes, I added SystemConfiguration.framework)

每一个我试着编译时得到一个架构i386的未定义符号错误。
这是我的完整错误消息:

Every time I try to compile I get a Undefined symbols for architecture i386 error. Here my complete error message:

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

有人知道这个问题吗?有人可以帮帮我吗?

Does anybody know about this issue? Can anybody help me?

非常感谢,问候,Julian

Thanks a lot, greetings, Julian

推荐答案

这通常意味着您没有在构建阶段的copy headers部分中的头文件或编译源中的实现文件中添加目标文件。

This usually means you didn't add to the target either the header file in the copy headers section in the build phases or the implementation file in the compile sources.

这篇关于可达性iOS 5.1(iPad)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆