Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

react-native-fbsdk/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m:78:3: Unknown type name 'FBSDKLoginManagerLoginResultBlock'; did you mean 'FBSDKLoginManagerLoginResult'? #574

Closed
erdemildiz opened this issue Jun 22, 2019 · 8 comments

Comments

@erdemildiz
Copy link

Same issue, anybody find solution?

Screen Shot 2019-06-22 at 15 00 34

Screen Shot 2019-06-22 at 15 00 52

Originally posted by @erdemildiz in #570 (comment)

@erdemildiz erdemildiz changed the title /Users/erdemildiz/Desktop/fixbilet/node_modules/react-native-fbsdk/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m:78:3: Unknown type name 'FBSDKLoginManagerLoginResultBlock'; did you mean 'FBSDKLoginManagerLoginResult'? react-native-fbsdk/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m:78:3: Unknown type name 'FBSDKLoginManagerLoginResultBlock'; did you mean 'FBSDKLoginManagerLoginResult'? Jun 22, 2019
@a-mummey
Copy link

I just encountered this same problem. I fixed it by using the latest version of the SDK which I found here: https://github.com/facebook/facebook-objc-sdk/releases

@erdemildiz
Copy link
Author

@genghisjuan Which version and files did you download? I download 5.1.0 version. I am getting Foundation.framework/Headers/Foundation.h:48:9: 'Foundation/NSKeyedArchiver.h' file not found error.

@a-mummey
Copy link

FacebookSDK_Static.zip
Then I copied these into the frameworks:
Screen Shot 2019-06-22 at 1 20 01 PM

@erdemildiz
Copy link
Author

@genghisjuan Thanks, It's worked!!

@bernhardt1
Copy link

@erdemildiz @genghisjuan

Thanks, your solution worked to get the build running. I am running to an error with the FB login now, as described here: #583

did you have to use cocoapods to get this API working properly?

@MaxNative95
Copy link

Hey @genghisjuan how you did to make it run?
I was making a facebook login today and after trying to run on xcode i am facing the same issue.
Initializing 'FBSDKLoginManagerLoginResult *__strong' with an expression of incompatible type 'void (^)(FBSDKLoginManagerLoginResult *__strong, NSError *__strong)'

What do i have to do?
Thanks

@arturcorvino
Copy link

I have the same issue here, but only in debug mode. In release mode, works for me. Any solution?

@janicduplessis
Copy link
Contributor

Gonna close this since the initial error is resolved. Version 0.10+ is only compatible with version 5+ of the fbsdk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants