我試圖使用parse + facebook auth。我下面的教程,我得到了像一些錯誤,當我編譯的文件我的項目:PFFacebookAuthentificationProvider.h /平方米不能使用Parse + Facebook驗證
/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個錯誤。 在這裏我的podfile:
platform :ios, '8.1'
xcodeproj 'Test'
target :Test, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
Thx很多,修正了問題。但這很奇怪,因爲我在1.12版本 – Makaille
是的,我有同樣的問題。看來Parse 1.12.0還沒有準備好進行FB整合。我注意到使用cocoapods更新到Parse 1.12.0後,PFSubclassing和PFObject類改變了顏色(編譯器)。我想他們終於寫得很快,但在更新之後,其他依賴庫(如ParseFacebookUtilsV4)開始抱怨,因爲我相信他們仍然有Objective-C代碼。無論如何,降級回Parse 1.11.0擺脫了我看到的大量錯誤,不知道爲什麼。感謝您的回答。 – c0d3Junk13