找不到FBSDKCoreKit/FBSDKCoreKit.h文件错误反应本机ios [英] FBSDKCoreKit/FBSDKCoreKit.h file not found error react-native ios
本文介绍了找不到FBSDKCoreKit/FBSDKCoreKit.h文件错误反应本机ios的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试安装Facebook SDK以响应niosve IOS.
Try to install Facebook SDK to react natiove IOS.
我有FBSDKCoreKit/FBSDKCoreKit.h文件未找到错误,并花了数小时试图用不同的解决方案解决它,但无法理解出了什么问题((
I have FBSDKCoreKit/FBSDKCoreKit.h file not found error and spent several hours trying to solve it with different solutions, but can't understand whats going wrong((
有什么想法吗?
本机0.40 react-native-fsdk 0.5.0 Facebook SDK:4.19.0
react-native 0.40 react-native-fsdk 0.5.0 facebook sdk: 4.19.0
推荐答案
- 检查是否在RN项目中执行了
react-native link
. - 手动检入链接的框架和库,您是否具有 libRCTFBSDK.a .如果没有,请点击底部的+按钮并将其链接.
- 从< 0.40升级项目本身本机时,请确保使用
npm install react-native@latest --save
更新RN包本身后运行 - 确保将sdk放入〜/Documents/FacebookSDK .我认为这很重要.
react-native upgrade
- Check if you did
react-native link
on your RN project. - Manually check in Linked Frameworks And Libraries, that you have libRCTFBSDK.a. If not, hit that + button at the bottom and link it.
- When upgrading the project itself react-native from <0.40 make sure you ran
react-native upgrade
after you've updated the RN package itself withnpm install react-native@latest --save
- Make sure that you put sdk in ~/Documents/FacebookSDK. I think it's important.
如果遇到一些错误,有时最好清除所有错误,然后重新开始全新安装.
If you come across some errors, sometimes it's better to clear all, and start fresh installation again.
尝试:
rm -rf ./node_modules
watchman watch-dell-all
npm cache clean
npm install
react-native run-ios
这篇关于找不到FBSDKCoreKit/FBSDKCoreKit.h文件错误反应本机ios的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文