Native component for “RCTFBLoginButton” does not exist

99封情书 提交于 2019-12-03 19:26:44

问题


im posting here because ive done like 12hours searching and trying things to resolve my issue , but just cant find the solution.

Here is a screen of my errors: React native debugger

I have followed the facebook developers step for IOS, followed instruction of FBSDK github, i've linked libraries...

still have errors..

Hope someone will help me out

Regards.


回答1:


e1dar answers your question but it was a comment so i'm answering the question as a post!

You can install the latest version with this fix from github right now with:

react-native install "facebook/react-native-fbsdk"

This will write to your package.json file:

"react-native-fbsdk": "github:facebook/react-native-fbsdk"

(you'll probably want to react-native uninstall react-native-fbsdk to uninstall and unlink the currently released version).

I also had to manually run react-native link react-native-fbsdk, then remove and re-add LIBRCTFBSDK.a from Build Phases/Link Binary With Libraries in XCode.

Source




回答2:


I just figured out how to solve this issue here by changing my podfile for the fsdk to:

pod 'react-native-fbsdk', :subspecs => ['Core', 'Login', 'Share'], :path => '../node_modules/react-native-fbsdk'



回答3:


I ran into the same problem too

Go through these steps to solve the problem:

  1. Make sure your react-native-fbsdk is linked and install.
  2. Make sure there are Bolts, ShareKit, CoreKit and LoginKit in your project framework.
  3. If you run into this error, its very likely that your framework is in the wrong path.
  4. Open your project with Xcode, go to your FBSDK framework search path. note: this is not your project framework search path, it is your FBSDK framework search path. Drag the directory of your framework to the path, just like this picture.
  5. Rebuild and run your project again! Good luck


来源:https://stackoverflow.com/questions/40874400/native-component-for-rctfbloginbutton-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!