Reachability iOS 5.1 (iPad)
Asked Answered
S

2

0

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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Thanks a lot, greetings, Julian

Stanwood answered 21/3, 2012 at 12:22 Comment(2)
is the Reachability.m file included in your target's compile sources and the header in the copy headers section in the build phases?Doubledecker
Wow… Now it works! Thanks a lot! Please answer my question so you'll get the reputation!Stanwood
D
4

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.

Doubledecker answered 22/3, 2012 at 8:11 Comment(0)
N
0

You need to link Reachability to your target.

Nikkinikkie answered 22/3, 2012 at 1:33 Comment(1)
how can i link the Reachablity to my target ?Hora

© 2022 - 2024 — McMap. All rights reserved.