I have already tried setting default location in product -> schemes -> allow current location is set.
func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let location: CLLocation = locations.first!
self.mapView.centerCoordinate = location.coordinate
let reg = MKCoordinateRegionMakeWithDistance(location.coordinate, 1500, 1500)
self.mapView.setRegion(reg, animated: true)
geoCode(location)
}
func locationManager(manager: CLLocationManager, didFailWithError error: NSError) {
print(error)
}