I am trying to use Reachability in ios 5.1 but it gives me a Match-o Linker error. I am using Xcode 4.3 and building my app with armv6 and armv7. I have read that Reachability doesn't play nice with armv7, which may be causing the error. Is that true? If so, is ythere any workaround to get my app checking internet connectivity? And yes, i have imported both
Reachability.h
and
SystemConfiguration.framework
My sample implementation code is as below:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(checkNetworkStatus:) name:kReachabilityChangedNotification object:nil];
internetReachable = [Reachability reachabilityForInternetConnection];
[internetReachable startNotifier];
hostReachable = [Reachability reachabilityWithHostName: @"www.apple.com"];
[hostReachable startNotifier];
Thanks in advcance!