Gaurav
Gaurav

Reputation: 107

Linker Command Failed Facebook Sdk

I am new to iOS and trying to implement Facebook SDK in a project using AppGuru Facebook integration in Swift tutorial. But I am facing this linker command error while building my app:

error is framework not found Bolts for architecture x84_64(linker command failed with exit code 1)

Here is a screenshot:

screenshot

Upvotes: 3

Views: 3115

Answers (5)

Hasya
Hasya

Reputation: 9898

Download demo project with facebook login from below URL. you have to configure your facebook app id.

Download

You have to import this 3 frameworks in your project.

Check on this

Framework search path - add below line

$(PROJECT_DIR)/Projectname/FacebookSDK

enter image description here


Also check, bolts, core and login kit of facebook has to be in build phase -> Link binary with libraries

enter image description here

Upvotes: 7

MidoEgy
MidoEgy

Reputation: 1

Copy the frameworks into the project but, unlike what Facebook tutorial suggests, select "Copy items into destination group's folder". I did that and it worked fine for me.

Upvotes: 0

Chandrama Prasad
Chandrama Prasad

Reputation: 541

When using the AWS Mobile SDK for iOS and Facebook SDK together, you should not import Bolts.framework in your project. If you remove it, it should compile.

Upvotes: 0

Mahendra Vishwakarma
Mahendra Vishwakarma

Reputation: 494

I had the same error. I deleted the ParseFacebookUtils.framework library from my project and kept only the ParseFacebookUtilsV4.framework.

Upvotes: 0

Anupam Mishra
Anupam Mishra

Reputation: 3588

Follow steps -

  • Go to your project setting page
  • Select your project (left side)
  • Click the Build Settings tab
  • Search Bitcode
  • Set Enable Bitcode to No

Upvotes: 1

Related Questions