Nathan Cleary
Nathan Cleary

Reputation: 653

Adding reachability to iphone application gives linking errors

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

enter image description here

Upvotes: 1

Views: 1347

Answers (2)

Omar Abdelhafith
Omar Abdelhafith

Reputation: 21221

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?

Upvotes: 1

sergio
sergio

Reputation: 69027

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.

Upvotes: 1

Related Questions