简体   繁体   English

用于iOS React-native的Facebook SDK无法构建

[英]Facebook SDK for iOS React-native not building

I've installed the fbsdl on Android and it seems to be working just fine. 我已经在Android上安装了fbsdl,而且似乎工作正常。 For iOS, I've completed all the steps mentioned here https://developers.facebook.com/docs/react-native/configure-ios . 对于iOS,我已经完成了这里提到的所有步骤https://developers.facebook.com/docs/react-native/configure-ios

The project isn't building and I get a log like this: 该项目没有建立,我得到了这样的日志:

ld: warning: directory not found for option '- 
L/Users/oskargusgard/Library/Developer/Xcode/DerivedData/RacePeps- 
aeabmevxmakhxcdchngqmcvjbpvu/Build/Products/Release-iphoneos/React'
ld: framework not found FirebaseAnalytics
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)

I think some framework paths might have changed by the running the ios_setup.js script, but don't know how to fix the issue 我认为某些框架路径可能会由于运行ios_setup.js脚本而发生了变化,但不知道如何解决该问题

I had a similar issue after adding the Facebook SDK, however it was to do with Crashlytics not being found. 添加Facebook SDK之后,我遇到了类似的问题,但是这与找不到Crashlytics有关。

I resolved it by doing the following: 我通过执行以下操作解决了该问题:

  1. In your Targets section go to Build Settings 在“ 目标”部分中,转到“ 构建设置”
  2. Search for FRAMEWORK_SEARCH_PATHS 搜索FRAMEWORK_SEARCH_PATHS
  3. Add ${inherited} 添加${inherited}
  4. Clean and build 清理并建造

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM