Do we need to manually import in main project the user location graphical assets from iOS MapBox SDK ?
If I try to show user location, I’ve got this error (built on iPhone 4s on iOS6 — same error is logged on simulator iOS 5.1)
if (!self.mapView.isUserLocationVisible) {
self.mapView.showsUserLocation = YES;
}
The exact error logged is :
[RMUserLocation initWithMapView:coordinate:andTitle:], /Users/franco/Apps/XXXX/Application/XXXX/Vendors/mapbox-ios-sdk/MapView/Map/RMUserLocation.m:24
2012-06-13 01:41:52.426 XXXX[2058:907] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unable to find necessary user location graphical assets (copy from MapView/Map/Resources)’
Thanks for your help.
A solution found, is to add (copy) assets files from MapView/Map/Resources to my root project.
I thought the Header Search Paths (set to $(SRCROOT)/IntraMuros/Vendors/mapbox-ios-sdk) would make these assets available.
There is probably a cleaner way to do this.
Note that assets files are available in the MapView sub-project.