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)''