使用localDataStore和PFFacebookUtils崩溃

时间:2015-02-01 06:58:10

标签: ios parse-platform

我刚刚启用了localDataStore。一切都运转良好,如果我发表评论,一切正常。我想做一些本地持久性,因为我无法使用NSCoding进行PFRelations来存储NSUserDefaults中的对象,我最好的选择是localDataStore。

但它没有用。

如果我使用Facebook登录,则可以正常使用。但是,在下一个应用程序启动时,它会在此行崩溃:

[PFFacebookUtils initializeFacebook];

使用控制台:

-[__NSCFBoolean _loadSensitiveUserDataFromKeychainItemWithName:]: unrecognized selector sent to instance 0x37f77660

跟踪:

* thread #1: tid = 0xf318, 0x3762cc64 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x3762cc64 libobjc.A.dylib`objc_exception_throw
    frame #1: 0x29e2a038 CoreFoundation`-[NSObject(NSObject) doesNotRecognizeSelector:] + 188
    frame #2: 0x29e27f56 CoreFoundation`___forwarding___ + 714
    frame #3: 0x29d59df8 CoreFoundation`_CF_forwarding_prep_0 + 24
    frame #4: 0x00697a4c LY`+[PFUser currentUser](self=<unavailable>, _cmd=<unavailable>) + 532 at PFUser.m:928
    frame #5: 0x00693d14 LY`+[PFUser(self=<unavailable>, _cmd=<unavailable>, provider=0x15d55fb0) registerAuthenticationProvider:] + 116 at PFUser.m:423
  * frame #6: 0x007a5f46 LY`+[PFFacebookUtils initializeFacebookWithUrlShemeSuffix:](self=<unavailable>, _cmd=<unavailable>, urlSchemeSuffix=<unavailable>) + 98 at PFFacebookUtils.m:58
    frame #7: 0x000a6f96 LY`-[AppDelegate application:didFinishLaunchingWithOptions:](self=0x15de8260, _cmd=0x2da83320, application=0x15de5420, launchOptions=0x00000000) + 1190 at AppDelegate.m:139
    frame #8: 0x2d34e720 UIKit`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 284
    frame #9: 0x2d5435ae UIKit`-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2358
    frame #10: 0x2d545afa UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1374
    frame #11: 0x2d550378 UIKit`__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 36
    frame #12: 0x2d544386 UIKit`-[UIApplication workspaceDidEndTransaction:] + 130
    frame #13: 0x3056b0e8 FrontBoardServices`__31-[FBSSerialQueue performAsync:]_block_invoke + 12
    frame #14: 0x29deb39c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    frame #15: 0x29dea660 CoreFoundation`__CFRunLoopDoBlocks + 216
    frame #16: 0x29de8de2 CoreFoundation`__CFRunLoopRun + 762
    frame #17: 0x29d37210 CoreFoundation`CFRunLoopRunSpecific + 476
    frame #18: 0x29d37022 CoreFoundation`CFRunLoopRunInMode + 106
    frame #19: 0x2d3483ee UIKit`-[UIApplication _run] + 558
    frame #20: 0x2d3431d0 UIKit`UIApplicationMain + 1440
    frame #21: 0x001310d4 LY`main(argc=1, argv=0x015a3ad0) + 116 at main.m:9

1 个答案:

答案 0 :(得分:0)

所以,这个&#34;功能&#34;似乎可以通过Parse iOS / OS X SDK v1.6.3的更新来解决。

请参阅@Numereyes提供的this link进行讨论和官方回复......