Take the 2-minute tour ×

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.

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)

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

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

Thanks a lot, greetings, Julian

share|improve this question
is the Reachability.m file included in your target's compile sources and the header in the copy headers section in the build phases? –  Demz Mar 21 '12 at 16:17
Wow… Now it works! Thanks a lot! Please answer my question so you'll get the reputation! –  Julian Mar 21 '12 at 21:04
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
add comment

You need to link Reachability to your target.

share|improve this answer
how can i link the Reachablity to my target ? –  Houcine Jul 11 '12 at 1:35
add comment

Your Answer


