2017-07-06 127 views
0

试图简单反应-本机应用程序与facebook SDK,得到以下错误的对象:未定义不是(评价 'LoginManager.loginWithPermissions')

undefined is not an object (evaluating 'LoginManager.loginWithPermissions')

重现步骤:

反应本地初始化应用

反应本地安装的反应,本机fbsdk

反应本地链路反应母语-fbsdk

Facebook的指导https://developers.facebook.com/docs/ios/getting-started/

反应本地运行IOS

error

有什么建议?

我认为react-native-fbsdk并没有正确地链接到xcode项目......如何检查它? 我没有任何异常,同时链接:

21:17 $ react-native link react-native-fbsdk Scanning 559 folders for symlinks in /Users/denis/Projects/app/node_modules (7ms)

它看起来像libRCTFBSDK.a没有纳入该项目,如何手动包括它?

+0

你在什么版本?看起来像在0.6.1中有一个链接的错误https://github.com/facebook/react-native-fbsdk/pull/349 –

+0

此外,该错误消息来自哪里?因为'FBLoginManagerl.loginWithPermissions'中存在拼写错误,这可能会帮助您找到问题。并且该错误与您提供的屏幕截图不匹配 –

+0

@GarrettMcCullough我试过0.6.1和0.6.0 –

回答

相关问题