ios - 无法使用 Parse + Facebook 身份验证

标签 ios facebook authentication parse-platform

我试过使用 parse + facebook auth。我正在学习一个教程,当我在文件上编译我的项目时遇到了一些错误:PFFFacebookAuthentificationProvider.h/m

/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:17:26: error: expected parameter declarator
@class BFTask PF_GENERIC(__covariant BFGenericType);
                     ^
/Users/Y.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:17:26: error: expected ')'
/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:17:25: note: to match this '('
@class BFTask PF_GENERIC(__covariant BFGenericType);
                    ^
/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:17:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@class BFTask PF_GENERIC(__covariant BFGenericType);
          ^
/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:43:4: error: expected a type
 - (BFTask *)authenticateAsyncWithReadPermissions:(nullable NSArray PF_GENERIC(NSString *) *)readPermissions
^/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:43:51: error: nullability specifier 'nullable' cannot be applied to non-pointer type 'NSArray'
- (BFTask *)authenticateAsyncWithReadPermissions:(nullable NSArray PF_GENERIC(NSString *) *)readPermissions
                                              ^
/Users/.../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookAuthenticationProvider.h:43:68: error: expected ')'
- (BFTask *)authenticateAsyncWithReadPermissions:(nullable NSArray PF_GENERIC(NSString *) *)readPermissions

20 个错误。 这是我的播客文件:

platform :ios, '8.1'

xcodeproj 'Test'

target :Test, :exclusive => true do
    pod 'Parse'
    pod 'ParseUI'
    pod 'ParseFacebookUtilsV4'
    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
end

最佳答案

我遇到了同样的问题。我修复它的方法是返回一个版本的解析...

pod 'Parse', '~>1.11.0'

我认为这个问题与 ParseFacebookUtilsV4 Pod 没有更新到最新版本有关。无论哪种方式,这应该能让您暂时恢复正常运行。

关于ios - 无法使用 Parse + Facebook 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34695199/

相关文章:

使用 since updated_time 参数的 Facebook Graph API 搜索

ios - 在未安装的机器上运行 Cocoa Pods 应用程序

iphone - Objective-C:查找字符串中的辅音

iphone - 在 iOS 中获取崩溃位置

javascript - FB.getLoginStatus 需要在触发前刷新页面

iOS - Facebook 的 AddThis SDK 看起来很糟糕

php - Laravel 5 内置用户身份验证中的重定向

security - Symfony2 登录和安全

ios - 自定义 CSS 字体在 PC 上加载,而不是在 IOS 上加载

authentication - Pentaho BI 服务器报告无需登录