Why am I getting an error regarding Bolts framework and FacebookSDK when I'm not even using Bolts?

核能气质少年 提交于 2019-12-02 20:03:58
  1. Open the project in Xcode.
  2. Go to where you extracted the FacebookSDK. If you're using Mac OSX, it should be available in Documents/FacebookSDK.
  3. Grab the Bolts.framework file and drop into your Frameworks folder in Xcode for your project.

It should build now.

you need to add Bolts.framework to your project

As of 24th of April 2019, the Facebook SDK in Swift repo inside this commit:

Removed Bolts from Swift SDK

So you will have to add Bolts to your pod file. FYI if you're using Swift 5 you will need to use the Bolts in Objc because currently Bolts for Swift only support Swift 4.1.

For Swift 5 in your pod file:

pod 'Bolts'

To answer your question, from Bolts GitHub:

Bolts is a collection of low-level libraries designed to make developing mobile apps easier. Bolts was designed by Parse and Facebook for our own internal use

In my case I opened the project instead of the workspace (using pods)

Go to Build Settings of your project.
Search for Framework Search Paths.
Add to debug: "$(inherited)".
Do the same for release.
Re-build the project.

Hope it helps!

You can just do pod update and then open your xcworkspace. Fixed it for me.

Late but might help - add Bolts.Framework - also remember to do as warnings shown during installation

  1. Run "pod update" in terminal (if you not updated)
  2. Remove "Bolts" framework from "Other Linker Flags" (Click on target->Build Settings -> Other Linker Flags)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!