ios - 来自 ParseSDK 的 PFFacebookUtils 抛出 PFUserAuthenticationController authenticationProviderForAuthType

标签 ios parse-platform facebook-ios-sdk

我收到一个[PFUserAuthenticationController authenticationProviderForAuthType:]: unrecognized selector sent to instance error 当我尝试在我的 IOS 应用程序中使用 Parse 的 PFFFacebookUtilsV4 时

当我调用时抛出此错误

PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions) 

函数

我正在尝试在 Parse SDK 和 Facebook SDK 之间建立基本的 iOS 链接。

  • 对于 FB SDK,我使用 v4.6
  • 对于 Parse SDK,我使用的是 v1.8.5

我已经根据 Parse 和 FB 教程设置了我的 iOS 项目。事实上,使用 Facebook Login Kit 运行我可以毫无问题地登录,所以我假设我的 FB 应用程序设置正确。

调试堆栈显示它与 PFUserAuthenicationController 相关

0x000000010bd2658d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x000000010bc73f7a ___forwarding___ + 970
    4   CoreFoundation                      0x000000010bc73b28 _CF_forwarding_prep_0 + 120
    5   MyApp                               0x000000010a595d30 +[PFFacebookUtils _authenticationProvider] + 160
    6   MyApp                               0x000000010a595d8d +[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:] + 48
    7   MyApp                               0x000000010a58af89

我已经检查、双重检查和三次检查我的框架包以确保它们是正确的。

我查看了我的搜索路径,这是正确的

我已经尝试了两个头文件桥接,但使用了不需要的类的 V4(这是用 Swift 编写的)

我几乎没有主意了!请帮忙

最佳答案

ParseFacebookUtilsV4 1.9.0 刚刚发布。似乎解决了这个问题。

https://github.com/ParsePlatform/ParseFacebookUtils-iOS

关于ios - 来自 ParseSDK 的 PFFacebookUtils 抛出 PFUserAuthenticationController authenticationProviderForAuthType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32820777/

相关文章:

ios - 无法将类型 '[AnyObject]' 的值分配给类型 '[UIViewController]?' 的值

ios - Quickblox Enterprise + Swift 3.0 + iOS 10 +,QBRequest重命名聊天对话框不正确

ios - 使用 UIActionSheet 更改 View 时工具栏项目消失

ios - ReactiveCocoa 4 : Observing an Action's completed event

ios - 取消getdatainbackground请求解析SDK

Android Facebook异常 : Login attempt failed

iOS Facebook SDK : An active access token must be used to query information about the current user

ios - 解析/Swift fatal error : use of unimplemented initializer 'init()

ios - Facebook IOS SDK 登录按钮强制小文本

ios - 如何在 iOS 应用程序中更改 fb 对话框标题?