1

I keep getting these errors trying to run the Reachability.h

enter image description here

Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56
Nathan Cleary
  • 653
  • 8
  • 20

2 Answers2

1

Your class is referencing Reachability, but you are not adding it to your project. You should possibly add the Reachability.m file to the project.

sergio
  • 68,819
  • 11
  • 102
  • 123
1

Go to Project build phases and add the following

Under Compile sources, press the "+" icon and add Reachability.m

Under Link Binary With Libraries press the "+" icon and add SystemConfiguration.framework

Check the screen shot

UPDATE:

If you are receiving ARC compilation errors You will have to disable ARC on specific files To do that please follow the steps in this answer How can I disable ARC for a single file in a project?

Community
  • 1
  • 1
Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56
  • After following the above I now get this... http://www.nathancleary.com/errors.png – Nathan Cleary Jun 05 '12 at 09:06
  • Thank you Omar, the ARC errors have no gone, I think I have done something else wrong as the Reachability doesn't actually work! My app just crashes instead, thanks again. – Nathan Cleary Jun 05 '12 at 09:24
  • I added the framework, but I don't see that the file was added to compile resources. – Dejell May 21 '13 at 10:12