NSError*error=[NSError errorWithDomain:@"com.raywenderlich.tutorials.healthkit" code:2 userInfo:[NSDictionary dictionaryWithObject:@"HealthKit is not available in th is Device" forKey:NSLocalizedDescriptionKey]];