Parse platform 针对Xcode 7的Facebook SDK发送到实例的无法识别的选择器错误

Parse platform 针对Xcode 7的Facebook SDK发送到实例的无法识别的选择器错误,parse-platform,swift2,xcode7,facebook-sdk-4.x,Parse Platform,Swift2,Xcode7,Facebook Sdk 4.x,我正在使用最新的facebook sdk和ios解析sdk。当我尝试在模拟器上运行我的应用程序时,出现以下错误: ParseStarterProject-Swift[2841:107652] -[PFUserAuthenticationController authenticationDelegateForAuthType:]: unrecognized selector sent to instance 0x7fd0bbc34620 2015-09-30 00:56:33.960 ParseS

我正在使用最新的facebook sdk和ios解析sdk。当我尝试在模拟器上运行我的应用程序时,出现以下错误:

ParseStarterProject-Swift[2841:107652] -[PFUserAuthenticationController authenticationDelegateForAuthType:]: unrecognized selector sent to instance 0x7fd0bbc34620
2015-09-30 00:56:33.960 ParseStarterProject-Swift[2841:107652] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PFUserAuthenticationController authenticationDelegateForAuthType:]: unrecognized selector sent to instance 0x7fd0bbc34620'
此错误是在我调用appdelegate文件中的facebook应用程序时发生的

 PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions)
下面是我的堆栈跟踪

First throw call stack:
(
    0   CoreFoundation                      0x00000001102cef65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000011280fdeb objc_exception_throw + 48
    2   CoreFoundation                      0x00000001102d758d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x0000000110224f7a ___forwarding___ + 970
    4   CoreFoundation                      0x0000000110224b28 _CF_forwarding_prep_0 + 120
    5   ParseStarterProject-Swift           0x000000010f06fdf5 +[PFFacebookUtils _authenticationProvider] + 139
    6   ParseStarterProject-Swift           0x000000010f06fe4c +[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:] + 48
    7   ParseStarterProject-Swift           0x000000010ef42f50 _TFC25ParseStarterProject_Swift11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 2160
    8   ParseStarterProject-Swift           0x000000010ef43903 _TToFC25ParseStarterProject_Swift11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 179
    9   UIKit                               0x000000011138f4ca -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
    10  UIKit                               0x0000000111390670 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
    11  UIKit                               0x0000000111396e15 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1755
    12  UIKit                               0x0000000111393ff0 -[UIApplication workspaceDidEndTransaction:] + 188
    13  FrontBoardServices                  0x0000000113ef37ac -[FBSSerialQueue _performNext] + 192
    14  FrontBoardServices                  0x0000000113ef3b1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    15  CoreFoundation                      0x00000001101fb0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    16  CoreFoundation                      0x00000001101f0fcc __CFRunLoopDoSources0 + 556
    17  CoreFoundation                      0x00000001101f0483 __CFRunLoopRun + 867
    18  CoreFoundation                      0x00000001101efe98 CFRunLoopRunSpecific + 488
    19  UIKit                               0x000000011139398d -[UIApplication _run] + 402
    20  UIKit                               0x0000000111398676 UIApplicationMain + 171
    21  ParseStarterProject-Swift           0x000000010ef449dd main + 109
    22  libdyld.dylib                       0x00000001133e492d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

我通过以下操作成功修复了此错误:

首先,我部署了Parse Server的官方版本(而不是Rob的版本)。打开此链接并单击“部署到Heroku”,按照以下步骤操作

之后,我从下面的链接下载了解析框架(包括Facebook框架),并用下载的框架替换了我项目中的所有当前框架

除此之外,只需遵循类步骤(向AppDelegate、Info.pslist e等添加代码)


任何问题,请告诉我。

我通过以下操作成功修复了此错误:

首先,我部署了Parse Server的官方版本(而不是Rob的版本)

之后,我从下面的链接下载了解析框架(包括Facebook框架),并用下载的框架替换了我项目中的所有当前框架

除此之外,只需遵循类步骤(向AppDelegate、Info.pslist e等添加代码)

有什么问题,请告诉我