Skip to content
This repository has been archived by the owner on May 8, 2022. It is now read-only.

Crash: KKGoogleAnalytics:persistentStoreCoordinator No model to generate a store from #4

Open
knutigro opened this issue May 26, 2015 · 0 comments

Comments

@knutigro
Copy link

I get following crash when launching KKGoogle analytics. Installed from Cocoapods and I try to use it with Swift:

    KKGAI().trackingID = "UA-62792522-4"
    KKGAI().send(KKGADictionaryBuilder.createScreenView("Launch").build() as Dictionary)

KKGoogleAnalytics:persistentStoreCoordinator No model to generate a store from
An uncaught exception was raised
+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'Record'
(
0 CoreFoundation 0x00007fff90d8403c exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff91a6976e objc_exception_throw + 43
2 CoreData 0x00007fff8f1df8b7 +[NSEntityDescription entityForName:inManagedObjectContext:] + 263
3 KKGoogleAnalytics 0x00000001002eace5 __34-[KKGoogleAnalytics _sendPayloads]_block_invoke + 101
4 KKGoogleAnalytics 0x00000001002ea6e3 -[KKGoogleAnalytics _sendPayloads] + 547
5 KKGoogleAnalytics 0x00000001002ea2ba -[KKGoogleAnalytics init] + 1386
6 KKGoogleAnalytics 0x00000001002e9d32 __35+[KKGoogleAnalytics sharedInstance]_block_invoke + 50
7 libdispatch.dylib 0x00000001007aed43 _dispatch_client_callout + 8
8 libdispatch.dylib 0x00000001007aed2e dispatch_once_f + 525
9 KKGoogleAnalytics 0x00000001002e9cd9 +[KKGoogleAnalytics sharedInstance] + 89
10 KKGoogleAnalytics 0x00000001002e95ea KKGAI + 26
11 App Reviews 0x000000010002ff76 TFC11App_Reviews11AppDelegate29applicationDidFinishLaunchingfS0_FCSo14NSNotificationT + 38
12 App Reviews 0x00000001000305ba TToFC11App_Reviews11AppDelegate29applicationDidFinishLaunchingfS0_FCSo14NSNotificationT + 58
13 CoreFoundation 0x00007fff90d4045c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
+ 12
14 CoreFoundation 0x00007fff90c30634 _CFXNotificationPost + 3140
15 Foundation 0x00007fff8f5569d1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
16 AppKit 0x00007fff8c575b9b -[NSApplication _postDidFinishNotification] + 291
17 AppKit 0x00007fff8c575906 -[NSApplication _sendFinishLaunchingNotification] + 191
18 AppKit 0x00007fff8c572a56 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 574
19 AppKit 0x00007fff8c572495 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 244
20 Foundation 0x00007fff8f589748 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
21 Foundation 0x00007fff8f5895b9 _NSAppleEventManagerGenericHandler + 102
22 AE 0x00007fff9452134c _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 531
23 AE 0x00007fff945210c9 ZL25dispatchEventAndSendReplyPK6AEDescPS + 31
24 AE 0x00007fff94520fd3 aeProcessAppleEvent + 295
25 HIToolbox 0x00007fff95d74c6e AEProcessAppleEvent + 56
26 AppKit 0x00007fff8c56beb2 _DPSNextEvent + 2249
27 AppKit 0x00007fff8c56af68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
28 AppKit 0x00007fff8c560bf3 -[NSApplication run] + 594
29 AppKit 0x00007fff8c4dd354 NSApplicationMain + 1832
30 App Reviews 0x0000000100030fcd main + 109
31 libdyld.dylib 0x00007fff8e26e5c9 start + 1
)
2015-05-26 22:59:28.111 App Reviews[39968:346732] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'Record''
*** First throw call stack:
(
0 CoreFoundation 0x00007fff90d8403c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff91a6976e objc_exception_throw + 43
2 CoreData 0x00007fff8f1df8b7 +[NSEntityDescription entityForName:inManagedObjectContext:] + 263
3 KKGoogleAnalytics 0x00000001002eace5 __34-[KKGoogleAnalytics _sendPayloads]_block_invoke + 101
4 KKGoogleAnalytics 0x00000001002ea6e3 -[KKGoogleAnalytics _sendPayloads] + 547
5 KKGoogleAnalytics 0x00000001002ea2ba -[KKGoogleAnalytics init] + 1386
6 KKGoogleAnalytics 0x00000001002e9d32 __35+[KKGoogleAnalytics sharedInstance]_block_invoke + 50
7 libdispatch.dylib 0x00000001007aed43 _dispatch_client_callout + 8
8 libdispatch.dylib 0x00000001007aed2e dispatch_once_f + 525
9 KKGoogleAnalytics 0x00000001002e9cd9 +[KKGoogleAnalytics sharedInstance] + 89
10 KKGoogleAnalytics 0x00000001002e95ea KKGAI + 26
11 App Reviews 0x000000010002ff76 TFC11App_Reviews11AppDelegate29applicationDidFinishLaunchingfS0_FCSo14NSNotificationT + 38
12 App Reviews 0x00000001000305ba TToFC11App_Reviews11AppDelegate29applicationDidFinishLaunchingfS0_FCSo14NSNotificationT + 58
13 CoreFoundation 0x00007fff90d4045c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
14 CoreFoundation 0x00007fff90c30634 _CFXNotificationPost + 3140
15 Foundation 0x00007fff8f5569d1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
16 AppKit 0x00007fff8c575b9b -[NSApplication _postDidFinishNotification] + 291
17 AppKit 0x00007fff8c575906 -[NSApplication _sendFinishLaunchingNotification] + 191
18 AppKit 0x00007fff8c572a56 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 574
19 AppKit 0x00007fff8c572495 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 244
20 Foundation 0x00007fff8f589748 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
21 Foundation 0x00007fff8f5895b9 _NSAppleEventManagerGenericHandler + 102
22 AE 0x00007fff9452134c _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 531
23 AE 0x00007fff945210c9 ZL25dispatchEventAndSendReplyPK6AEDescPS + 31
24 AE 0x00007fff94520fd3 aeProcessAppleEvent + 295
25 HIToolbox 0x00007fff95d74c6e AEProcessAppleEvent + 56
26 AppKit 0x00007fff8c56beb2 _DPSNextEvent + 2249
27 AppKit 0x00007fff8c56af68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
28 AppKit 0x00007fff8c560bf3 -[NSApplication run] + 594
29 AppKit 0x00007fff8c4dd354 NSApplicationMain + 1832
30 App Reviews 0x0000000100030fcd main + 109
31 libdyld.dylib 0x00007fff8e26e5c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant