"Fetch request must have an entity" exception in AcountsViewController reloadAccounts
I'm sorry but I don't know anything about CoreData. Installed the latest on 2 phones after couldn't download data from Apple for a few days. AppSales bombs with an exception in AcountsViewController reloadAccounts.
2011-08-17 09:23:29.362 AppSalesMobile[787:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.'
Install Xcode 4.1.
With Xcode 4.2, iOS 5 beta 4
011-08-17 09:50:50.579 AppSalesMobile[1180:707] Unresolved error Error Domain=NSCocoaErrorDomain Code=134130 "The operation couldn’t be completed. (Cocoa error 134130.)" UserInfo=0x2aa220 {URL=file://localhost/var/mobile/Applications/E3A6C368-6571-4933-9E8B-F1A8901B3E1D/Library/Application%20Support/AppSales.sqlite, metadata=<CFBasicHash 0x26f670 [0x3ede5630]>{type = immutable dict, count = 7, entries => 2 : <CFString 0x26d630 [0x3ede5630]>{contents = "NSStoreModelVersionIdentifiers"} = <CFArray 0x26dec0 [0x3ede5630]>{type = immutable, count = 0, values = ()} 4 : <CFString 0x26dca0 [0x3ede5630]>{contents = "NSPersistenceFrameworkVersion"} = <CFNumber 0x26f3b0 [0x3ede5630]>{value = +371, type = kCFNumberSInt64Type} 6 : <CFString 0x26ed70 [0x3ede5630]>{contents = "NSStoreModelVersionHashes"} = <CFBasicHash 0x26da90 [0x3ede5630]>{type = immutable dict, count = 0, entries => }
7 : <CFString 0x3e539868 [0x3ede5630]>{contents = "NSStoreUUID"} = <CFString 0x26bc40 [0x3ede5630]>{contents = "E6DE9FAD-CFBA-46F0-BE7D-C188A8936CFA"}
8 : <CFString 0x3e539708 [0x3ede5630]>{contents = "NSStoreType"} = <CFString 0x3e539718 [0x3ede5630]>{contents = "SQLite"}
9 : <CFString 0x26f320 [0x3ede5630]>{contents = "_NSAutoVacuumLevel"} = <CFString 0x26eda0 [0x3ede5630]>{contents = "2"}
10 : <CFString 0x26f380 [0x3ede5630]>{contents = "NSStoreModelVersionHashesVersion"} = <CFNumber 0x238470 [0x3ede5630]>{value = +3, type = kCFNumberSInt32Type}
} , reason=Can't find model for source store}, { URL = "file://localhost/var/mobile/Applications/E3A6C368-6571-4933-9E8B-F1A8901B3E1D/Library/Application%20Support/AppSales.sqlite"; metadata = { NSPersistenceFrameworkVersion = 371; NSStoreModelVersionHashes = { }; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( ); NSStoreType = SQLite; NSStoreUUID = "E6DE9FAD-CFBA-46F0-BE7D-C188A8936CFA"; "_NSAutoVacuumLevel" = 2; }; reason = "Can't find model for source store"; } (gdb)
Perhaps delete the app and rebuild? Not sure actually what's causing this.