Compiler error: Invalid library file - CoreLocation Compiler error: Invalid library file - CoreLocation swift swift

Compiler error: Invalid library file - CoreLocation


I'm seeing this issue also. It only happens if you implement the renderFor overlay for MKMapView. And without this function, I can't display the polyline that I'm adding to the mapView. This was working fine in Xcode 10.


Hope this will be fixed in the next version of xcode. But this only happens on the simulator. Use your real device for testing for now..


I started running into this error recently and was able to get it to go away by clearing the Simulator from Hardware->Erase All Content and Settings... menu item.