The application that I have been working with for some time, without build errors, from the moment I upgraded to xCode 4, gave me an incompatible type warning for the last line of this code ...
locationManager = [[CLLocationManager alloc] init]; locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters; locationManager.delegate = self;
The funny thing is that after cleaning and assembling xcodes does not cause any problems. However, if I go to the class containing this code, a build error will suddenly appear and remain until I do a clean one again.
actual warning ...
warning: Semantic Issue: Incompatible pointer types assigning 'id' from 'Class'
CLLocationmanager works fine, and my delegation methods are called, so everything works correctly. I would like to get rid of this warning. Should I just ignore him?
source share