`Reachability *r = [Reachability reachabilityWithHostName:@"www.google.com"];` 

This line works fine on device, but on simulator i get crash : 

> 
> *\** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Reachability reachabilityWithHostName:]: unrecognized selector sent to class
> 
> 
> 

Does anyone know why ?