I have a project which incorporated mapbox-ios-sdk sometime ago. Mapbox-ios-sdk has undergone some changes but I’ve also hacked some code into it. So I try to merge the Mapbox-ios-sdk from origin into my branch, and after some struggle finally it has compiled. However, I’ve run into this error:
2012-10-16 19:09:26.466 OfflineSpotty[81420:11f03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to find LoadingTile.png (copy from framework 'Resources' folder)'
The images are properly added in the left pane. Why is it not finding it?
EDIT:
The line it fails is: RMRequireAsset(@"LoadingTile.png")
I see that it actually fails on an NSAssert:
#define RMRequireAsset(asset) NSAssert([[NSBundle mainBundle] pathForResource:[asset stringByReplacingOccurrencesOfString:[@"." stringByAppendingString:[asset pathExtension]] withString:@""] ofType:[asset pathExtension]], @"Unable to find %@ (copy from framework 'Resources' folder)", asset);
And the more complete message
`* Assertion failure in -[RMLoadingTileView initWithFrame:], /Users/t2wu/Documents/Xcode_projects/Open_source/mapbox-ios-sdk/MapView/Map/RMLoadingTileView.m:24
2012-10-16 20:24:58.456 OfflineSpotty[17713:11f03] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unable to find LoadingTile.png (copy from framework ‘Resources’ folder)”
I faced that same problem and finally found a solution for it.
There is a file called MapBox.bundle inside the mapbox ios sdk project, as seen in the following image:

All I had to do was to add in my main project target (I guess you’ll have to add it to OfflineSpotty target) that MapBox.bundle (I just used drag and drop).
After that, the project builds and runs ok.