user6190673
user6190673

Reputation:

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

Getting this error

framework not found Bolts for architecture x86_64

Followed Facebook's guide word for word, but the only place I can think of an error with linking happening is in the Build Settings for Framework Search Paths. All I currently am attempting in the app is to add a Facebook Login in button, simply visually to make sure it's loading visually. No method functionality is added, but I can't even build the project in this current state.

Upvotes: 41

Views: 18377

Answers (8)

OhadM
OhadM

Reputation: 4803

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

EDIT / UPDATE:

It looks like Bolts for Swift now support Swift 5.

Upvotes: 6

Mahesh Cheliya
Mahesh Cheliya

Reputation: 1364

  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)

Upvotes: 0

Shanbhag Vinit
Shanbhag Vinit

Reputation: 139

Late but might help - add Bolts.Framework - also remember to do as warnings shown during installationenter image description here

Upvotes: 0

Dan Zeevi
Dan Zeevi

Reputation: 21

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!

Upvotes: 2

r3dm4n
r3dm4n

Reputation: 1215

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

Upvotes: 0

htafoya
htafoya

Reputation: 19283

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

Upvotes: 2

Obadah Shatnawi
Obadah Shatnawi

Reputation: 79

you need to add Bolts.framework to your project

Upvotes: 7

Poyan
Poyan

Reputation: 6643

  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.

Upvotes: 121

Related Questions