I’m trying to add Internet access to my application and in order to do this, I am testing to see whether or not the user is connected to a Wifi/3G network. To do this, I followed Apple’s Reachability sample code and added Apple’s Reachability.h and Reachability.m to my project. When I try to run the project at this point (I haven’t even added any code accessing the Apple’s Reachability files), I get 13 errors. This seems normal, as I have not yet added the SystemConfiguration framework to my project, but when I do add it, I still get the same errors, making me wonder if I’m adding frameworks correctly.
To add the framework, I went to…
Project > Targets > Build Phases > Link Binary with Libraries > The + Button > Add SystemConfiguration. Framework
Has anyone else had this issue and figured something out?
Images of Errors showing “Automatic Reference Counting Issue”
http://farm8.staticflickr.com/7034/6461498873_5faeae2db3_b.jpg
http://farm8.staticflickr.com/7017/6461499405_1e679067e2_b.jpg
These are ARC errors, your project appears to be set to use ARC but the Reachability classes are not written to support ARC, you will need to disable ARC for Reachability.m
See how to do that here, How can I disable ARC for a single file in a project?