Same issue, anybody find solution?


_Originally posted by @erdemildiz in https://github.com/facebook/react-native-fbsdk/issues/570#issuecomment-504660065_
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
@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.
FacebookSDK_Static.zip
Then I copied these into the frameworks:

@GenghisJuan Thanks, It's worked!!
@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: https://github.com/facebook/react-native-fbsdk/issues/583
did you have to use cocoapods to get this API working properly?
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
I have the same issue here, but only in debug mode. In release mode, works for me. Any solution?
Gonna close this since the initial error is resolved. Version 0.10+ is only compatible with version 5+ of the fbsdk
Most helpful comment
FacebookSDK_Static.zip

Then I copied these into the frameworks: