Reputation: 584
I am creating an iPhone application, and I am using RestKit api to connect to the server. I am facing a problem whenever I add the Reachability.m
and Reachability.h
into the second UIViewController
of the project. I tried making a new .m file in Xcode4 and now I get an Apple macho-linker (id) error on all tabst. I added it to the first UIViewcontroller
it works normally, but when I try to add it to any other forms I receive this error.
Upvotes: 0
Views: 1558
Reputation: 584
Solved it by importing ONLY "Reachability.h" not "Reachability.h" and "Reachability.m"
Upvotes: 0
Reputation: 4440
Have you added the SystemsConfigurations.Framework
to your project? Apples reachability package requires the SystemConfigurations.Framework
to be added before it can be used.
Also if you are using ARC (Automatic ReferenceCounting), ensure you have disabled ARC for that particular file. Do this by going to build phases, compile sources, then double clicking Reachability.m
and entering -fno-objc-arc to disable ARC
Upvotes: 5