You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the fileprivate func geoCodeAddress(_ address:NSString){} caused an error due to a
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
To correct it , it's enough to correct this line:
geocoder.geocodeAddressString(address as String, completionHandler: ({(placemarks: [CLPlacemark]?, error: NSError?) -> Void in
to:
geocoder.geocodeAddressString(address as String, completionHandler: ({(placemarks: [CLPlacemark]?, error: Error?) -> Void in
the
fileprivate func geoCodeAddress(_ address:NSString){}
caused an error due to aTo correct it , it's enough to correct this line:
geocoder.geocodeAddressString(address as String, completionHandler: ({(placemarks: [CLPlacemark]?, error: NSError?) -> Void in
to:
geocoder.geocodeAddressString(address as String, completionHandler: ({(placemarks: [CLPlacemark]?, error: Error?) -> Void in
You can find more details also here in SO
You also don't need to force casting to
as! CLGeocodeCompletionHandler
, so it can be removed.The text was updated successfully, but these errors were encountered: