Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-23-2010, 02:28 AM   #1 (permalink)
Novice iOS Programmer
 
Join Date: Sep 2010
Location: Tempe, Arizona
Posts: 1
HappySlice is on a distinguished road
Default Core Data Difficulties

I made a slightly altered version of apple's "iPhoneCoreDataRecipes" example:

https://developer.apple.com/library/...ion/Intro.html

I only changed the names of the model classes and the names of some of the attributes, for it to make more sense in the type of app I am making.

When I run the app, though, it crashes on start up, and the debugger window says the following:


[Session started at 2010-09-23 00:21:37 -0700.]
2010-09-23 00:21:40.688 PocketPUA[15524:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Set''
*** Call stack at first throw:
(
0 CoreFoundation 0x02677919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0248c5de objc_exception_throw + 47
2 CoreData 0x022a025b +[NSEntityDescription entityForName:inManagedObjectContext:] + 187
3 PocketPUA 0x00003435 -[SetListTableViewController fetchedResultsController] + 158
4 PocketPUA 0x00002d1b -[SetListTableViewController viewDidLoad] + 365
5 UIKit 0x00373c26 -[UIViewController view] + 179
6 UIKit 0x00372050 -[UIViewController contentScrollView] + 42
7 UIKit 0x00381df7 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewCont roller:] + 48
8 UIKit 0x003804ff -[UINavigationController _layoutViewController:] + 43
9 UIKit 0x00381789 -[UINavigationController _startTransition:fromViewController:toViewControll er:] + 524
10 UIKit 0x0037c329 -[UINavigationController _startDeferredTransitionIfNeeded] + 266
11 UIKit 0x00497209 -[UILayoutContainerView layoutSubviews] + 226
12 QuartzCore 0x042070d5 -[CALayer layoutSublayers] + 177
13 QuartzCore 0x04206e05 CALayerLayoutIfNeeded + 220
14 QuartzCore 0x0420664c _ZN2CA7Context18commit_transactionEPNS_11Transacti onE + 302
15 QuartzCore 0x042062b0 _ZN2CA11Transaction6commitEv + 292
16 UIKit 0x002ce63f -[UIApplication _reportAppLaunchFinished] + 39
17 UIKit 0x002cea68 -[UIApplication _runWithURLayload:launchOrientation:statusBarSty le:statusBarHidden:] + 545
18 UIKit 0x002d8452 -[UIApplication handleEvent:withNewEvent:] + 1958
19 UIKit 0x002d1074 -[UIApplication sendEvent:] + 71
20 UIKit 0x002d5ac4 _UIApplicationHandleEvent + 7495
21 GraphicsServices 0x02dddafa PurpleEventCallback + 1578
22 CoreFoundation 0x02658dc4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FU NCTION__ + 52
23 CoreFoundation 0x025b9737 __CFRunLoopDoSource1 + 215
24 CoreFoundation 0x025b69c3 __CFRunLoopRun + 979
25 CoreFoundation 0x025b6280 CFRunLoopRunSpecific + 208
26 CoreFoundation 0x025b61a1 CFRunLoopRunInMode + 97
27 UIKit 0x002ce226 -[UIApplication _run] + 625
28 UIKit 0x002d9b58 UIApplicationMain + 1160
29 PocketPUA 0x00002344 main + 102
30 PocketPUA 0x000022d5 start + 53
31 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'


I have been trying to get Core Data to work for months now. I have implemented persistent data with NSCoding, but it is not nearly as nice as what Core Data does - when it is working.

Could someone please tell me what this error means, point me to a good Core Data tutorial, or a good resource on Core Data?
HappySlice is offline   Reply With Quote
Old 09-23-2010, 03:53 AM   #2 (permalink)
YQLabs
 
Join Date: Jul 2010
Posts: 105
Dhanunjaya is on a distinguished road
Default

Quote:
Originally Posted by HappySlice View Post
I made a slightly altered version of apple's "iPhoneCoreDataRecipes" example:

https://developer.apple.com/library/...ion/Intro.html

I only changed the names of the model classes and the names of some of the attributes, for it to make more sense in the type of app I am making.

When I run the app, though, it crashes on start up, and the debugger window says the following:


[Session started at 2010-09-23 00:21:37 -0700.]
2010-09-23 00:21:40.688 PocketPUA[15524:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Set''
*** Call stack at first throw:
(
0 CoreFoundation 0x02677919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0248c5de objc_exception_throw + 47
2 CoreData 0x022a025b +[NSEntityDescription entityForName:inManagedObjectContext:] + 187
3 PocketPUA 0x00003435 -[SetListTableViewController fetchedResultsController] + 158
4 PocketPUA 0x00002d1b -[SetListTableViewController viewDidLoad] + 365
5 UIKit 0x00373c26 -[UIViewController view] + 179
6 UIKit 0x00372050 -[UIViewController contentScrollView] + 42
7 UIKit 0x00381df7 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewCont roller:] + 48
8 UIKit 0x003804ff -[UINavigationController _layoutViewController:] + 43
9 UIKit 0x00381789 -[UINavigationController _startTransition:fromViewController:toViewControll er:] + 524
10 UIKit 0x0037c329 -[UINavigationController _startDeferredTransitionIfNeeded] + 266
11 UIKit 0x00497209 -[UILayoutContainerView layoutSubviews] + 226
12 QuartzCore 0x042070d5 -[CALayer layoutSublayers] + 177
13 QuartzCore 0x04206e05 CALayerLayoutIfNeeded + 220
14 QuartzCore 0x0420664c _ZN2CA7Context18commit_transactionEPNS_11Transacti onE + 302
15 QuartzCore 0x042062b0 _ZN2CA11Transaction6commitEv + 292
16 UIKit 0x002ce63f -[UIApplication _reportAppLaunchFinished] + 39
17 UIKit 0x002cea68 -[UIApplication _runWithURLayload:launchOrientation:statusBarSty le:statusBarHidden:] + 545
18 UIKit 0x002d8452 -[UIApplication handleEvent:withNewEvent:] + 1958
19 UIKit 0x002d1074 -[UIApplication sendEvent:] + 71
20 UIKit 0x002d5ac4 _UIApplicationHandleEvent + 7495
21 GraphicsServices 0x02dddafa PurpleEventCallback + 1578
22 CoreFoundation 0x02658dc4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FU NCTION__ + 52
23 CoreFoundation 0x025b9737 __CFRunLoopDoSource1 + 215
24 CoreFoundation 0x025b69c3 __CFRunLoopRun + 979
25 CoreFoundation 0x025b6280 CFRunLoopRunSpecific + 208
26 CoreFoundation 0x025b61a1 CFRunLoopRunInMode + 97
27 UIKit 0x002ce226 -[UIApplication _run] + 625
28 UIKit 0x002d9b58 UIApplicationMain + 1160
29 PocketPUA 0x00002344 main + 102
30 PocketPUA 0x000022d5 start + 53
31 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'


I have been trying to get Core Data to work for months now. I have implemented persistent data with NSCoding, but it is not nearly as nice as what Core Data does - when it is working.

Could someone please tell me what this error means, point me to a good Core Data tutorial, or a good resource on Core Data?
Hi,

you delete the previous build file and also in simulator you delete created icon of your app and execute again.....may be it will works....

Thanks
Dhanunjaya M
__________________
Dhanunjaya
www.yqlabs.com
Dhanunjaya is offline   Reply With Quote
Reply

Bookmarks

Tags
apple apps, coredata, help me, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 347
11 members and 336 guests
2ndSegment, djohnson, Hamad, headkaze, markuschow, mistergreen2011, Objective Zero, pungs, revg, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0