MugunthKumar/MKStoreKit — Issue #49: Crash when updating from iCloud on MKStoreManager
Author: thiagoperes
Created: 2012-01-06 15:29:28+00:00
State: open

I was using MKStoreKit just fine, but when I logged out from my ITC test account and deleted the app, this is what I get when I start:
``+(void) updateFromiCloud:(NSNotification*) notificationObject ``

The problem seems to be what SFHFKeychainUtils tries to add to the keychain

This is the key: ``WebKitWebSecurityEnabled`` and this is the object: ``1``

Here's the exception:
``*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean dataUsingEncoding:]: unrecognized selector sent to instance 0x3ef2f9f0'``

Here's the call stack:

-[__NSCFBoolean dataUsingEncoding:]: unrecognized selector sent to instance 0x3ef2f9f0
0 CoreFoundation 0x343e78d7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x346371e5 objc_exception_throw + 32
2 CoreFoundation 0x343eaacb -[NSObject doesNotRecognizeSelector:] + 174
3 CoreFoundation 0x343e9945 ___forwarding___ + 300
4 CoreFoundation 0x34344680 _CF_forwarding_prep_0 + 48
5 Katapakote 0x00062201 +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] + 984
6 Katapakote 0x00099a4f __35+[MKStoreManager updateFromiCloud:]_block_invoke_0 + 114
7 CoreFoundation 0x343e70fb ____NSDictionaryEnumerate_block_invoke_0337 + 22
8 CoreFoundation 0x34333000 CFBasicHashApply + 140
9 CoreFoundation 0x343e43f9 __NSDictionaryEnumerate + 572
10 Katapakote 0x000999c9 +[MKStoreManager updateFromiCloud:] + 80
11 Foundation 0x35dbc50f __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_0 + 18
12 CoreFoundation 0x343b3577 ___CFXNotificationPost_block_invoke_0 + 70
13 CoreFoundation 0x3433f0cf _CFXNotificationPost + 1406
14 Foundation 0x35d303fb -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
15 Foundation 0x35e63191 -[NSUbiquitousKeyValueStore _postDidChangeNotificationExternalChanges:sourceChangeCount:] + 296
16 Foundation 0x35e64131 __block_global_3 + 76
17 libdispatch.dylib 0x37010d55 _dispatch_call_block_and_release + 12
18 libdispatch.dylib 0x3701be8d _dispatch_main_queue_callback_4CF$VARIANT$up + 196
19 CoreFoundation 0x343ba2dd __CFRunLoopRun + 1268
20 CoreFoundation 0x3433d4dd CFRunLoopRunSpecific + 300
21 CoreFoundation 0x3433d3a5 CFRunLoopRunInMode + 104
22 GraphicsServices 0x30bc1fcd GSEventRunModal + 156
23 UIKit 0x377be743 UIApplicationMain + 1090
24 Katapakote 0x00004587 main + 66
25 Katapakote 0x00004008 start + 40