Search code examples
iphoneobjective-ciosxcodereachability

"Reachability.h" "Reachability.m gives an Apple mach-o linker error while adding them


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.


Solution

  • Solved it by importing ONLY "Reachability.h" not "Reachability.h" and "Reachability.m"