しばらく前に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:]、/ Users / t2wu / Documents / Xcode_projects / Open_source / mapbox-ios-sdk / MapView / Map / RMLoadingTileView.m:24 2012-10-16 20:24:58.456OfflineSpottyでのアサーションの失敗[ 17713:11f03]*キャッチされなかった例外「NSInternalInconsistencyException」が原因でアプリを終了しています。理由:「LoadingTile.pngが見つかりません(フレームワークの「Resources」フォルダーからコピー)」