2012-09-07 19:31:07.938 BadgerNew[2590:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/AD11CC37-653F-44FD-B7E2-412C0DB10234/BadgerNew.app> (loaded)' with name 'FrontPageofBadger''
曾經是一個名爲FrontPageofBadger的類和xib。如何調試嘗試加載不存在的nib的NSInternalInconsistencyException?
但是,在整個項目的任何地方都沒有提及。
如果我搜索項目,我什麼也沒得到。
那麼爲什麼在地球上iOs試圖加載這個所謂的FrontPageofBadger?曾經有一個名爲FrontPageofBadger的類。類名更改爲myprofile。我沒有看到ios應該找到frontpageofbadger的地方。它不在任何代碼或xib中引用。
哪裏?什麼樣的代碼嘗試加載?
代碼運行在模擬器罰款
是別人有同樣的問題。我有乾淨的構建從iPhone中刪除等無濟於事
-(void)startInit{
[[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:@"OnlyBookmark"];
//[BNUtilitiesQuick AnimateSwitchingWithParent:self From:[BNUtilitiesQuick searchController] To:[BNUtilitiesQuick searchController]];
if ([BNUtilitiesQuick searchController].view == nil) {};
if ([BNUtilitiesQuick ListController].view == nil) {};
if ([BNUtilitiesQuick FrontPageAje].view == nil) {}; //this is where the error happen. I
FrontPageAje是一個功能
+ (MyProfile *) FrontPageAje
{
return[BNUtilitiesQuick appDelegate].SettingsMiscelaneous;
}
而且它宣稱在這裏:
@property (nonatomic, weak) IBOutlet MyProfile *SettingsMiscelaneous;
這是非常明顯,FrontPageofBadger不出現在任何地方。
我故意嘗試在開始時加載所有viewController。餿主意。我知道。
嘗試在接受的答案在這裏第2和第3建議:http://stackoverflow.com/questions/4980296/xcode-includes-xib-files-that-have-been-deleted – Tom