我有一個項目,它之前包含了mapbox-ios-sdk。 Mapbox-ios-sdk已經發生了一些變化,但我也侵入了一些代碼。所以我嘗試將Mapbox-ios-sdk從原點合併到我的分支中,並在經過一番努力後最終編譯完成。不過,我碰到這個錯誤:包含項目但無法找到資源的XCode
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/D中聲明失敗OPS/Xcode_projects/Open_source/mapbox-ios-sdk/MapView/Map/RMLoadingTileView.m:24 2012-10-16 20:24:58.456 OfflineSpotty [17713:11f03] *由於未捕獲的異常'NSInternalInconsistencyException'原因:'無法找到LoadingTile.png(從框架「資源」文件夾複製)''
而這與無關與http://stackoverflow.com/questions/8689235/could-not-load-nib-in-bundle-nsbundle-when-using-storyboarding? – VonC
這不是我無法加載筆尖,所以我認爲它是不同的。 – huggie
也許這不是合併問題。我正在檢查它在做什麼。 – huggie