我有一个项目,该项目纳入mapbox-IOS-SDK较早前。 Mapbox-IOS-SDK已经发生了一些变化,但我也砍死了一些代码到它。 于是,我尝试从原点Mapbox-IOS-SDK合并到我的分支,经过一番挣扎后,终于它编译。 不过,我碰到这个错误:
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)'
这些图像在左窗格中正确添加。 为什么没有发现呢?
编辑:
失败的路线是: RMRequireAsset(@"LoadingTile.png")
我看到,它实际上是失败上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);
而更加饱满的消息
`*在声明失败- [RMLoadingTileView initWithFrame:方法],2012年10月16日/Users/t2wu/Documents/Xcode_projects/Open_source/mapbox-ios-sdk/MapView/Map/RMLoadingTileView.m:24 20:24:58.456 OfflineSpotty [ 17713:11f03] *终止应用程序由于未捕获的异常“NSInternalInconsistencyException”,理由是:“无法找到LoadingTile.png(从框架副本‘资源’文件夹)””