I had almost the same problem, except that the linker did not bind Reachability after I added it via pod.
internetReachable = [Reachability reachabilityWithHostName:@"www.google.com"];
On this line, the compiler generated the error "Unknown class method for reachability of the selectorWithHostName:".
I tried to read accessibility, tried to clear the project, nothing helped. Then I just tried to rewrite this line and compile it!
internetReachable = [Reachability reachabilityWithHostName:@"www.google.com"];
And now I understand why this worked. Since my old code was taken from another project with a different version of Reachability, and the selector was named "HostName", but new with "Hostname".
Before rewriting, I checked if this method has the Reachability method, and it seemed to me that it had one and I could not understand the problem. It turned out that I did not notice this small change in one letter!
source share