Tag Archives: Reachability
Undefined symbols for architecture i386 – Reachability
Today I add the Reachability classes to an app I am working on, added my #import Reachability.h to the correct files and then implemented a method to check if the device was using wifi. When I hit build, I got the following error. Undefined symbols for architecture i386: “_SCNetworkReachabilityCreateWithAddress”, referenced from: +[Reachability reachabilityWithAddress:] in Reachability.o […]
iOS – Check if wifi is being used
In an app I was making recently I wanted to check if the user was using a wifi connection. I used the method below to check and just checked whether it returned true or false. – (BOOL)networkCheck{ Reachability *currentReachability = [[Reachability reachabilityForInternetConnection] retain]; NetworkStatus networkStatus = [currentReachability currentReachabilityStatus]; [currentReachability release]; switch (networkStatus) { case NotReachable: […]