3

I am facing the issue posted in this Parse for iOS: Errors when trying to run the app and the solution mentioned is to add FacebookSDK.framework to the Xcode project and this should resolve the issue. After installing Facebook SDK for IOS pkg.

But I cannot find FacebookSDK.framework file in Documents/FacebookSDK dir.

Can any one please guide me in this?

Note: Using Xcode 6.2 and iOS 8 (latest)

update 1

I have the following frameworks in settings

enter image description here

And the Documents/FacebookSDK looks like below. Which lib is to be included in Xcode? and how?

enter image description here

Community
  • 1
  • 1
Incpetor
  • 1,293
  • 6
  • 25
  • 46
  • I guess this is the solution http://stackoverflow.com/a/15465369/2099097, and they are not saying to add FacebookSDK.framework – Burhanuddin Sunelwala Apr 13 '15 at 10:41
  • the link is same as in the question and if you read it carefully it says `if you are using a library which requires that flag, you can add the Facebook SDK. `. and I have a lib that uses `-ObjC` hence my question ... – Incpetor Apr 13 '15 at 10:48
  • yes it asks you to add Facebook SDK but there is nothing specifically mentioned about **Facebook.Framework** file, you can add your Facebook SDK in the search paths – Burhanuddin Sunelwala Apr 13 '15 at 11:02

3 Answers3

1

If you've downloaded the latest Facebook SDK version (> v4), the framework has been splitted into several kit. Instead of FacebookSDK.framework, include the FBSDKCoreKit and FBSDKLoginKit frameworks at least.

applequist
  • 304
  • 3
  • 9
0

After successful download of Facebook SDK, you may go to Home from Finder -> GO -> Home Menu, click over it. and Goto Documents Folder, you will find out FacebookSDK folder.

You may miss to set /Users/userName/Documents/FacebookSDK in Framework Search Path. userName is user Login Username.

Update 1

From April 2, Facebook has updated new version, with separated framework for several functions.

FBSDKCoreKit.framework required for all other framework as basics.

FBSDKLoginKit.framework is required for Login and session management.

FBSDKShareKit.framework for Sharing Post, images and all.

You can Drag and Drop this framework from your folder to Link Binary to Library section (Drag from second image screen window and drop it to first image window.)

Viral Savaj
  • 3,379
  • 1
  • 26
  • 39
0

enter image description hereMake sure you have added the libsqlite3.dylibframework and also make sure Bolts.framework come s in top of the hierarchy.

Adam Young
  • 1,321
  • 4
  • 20
  • 36
  • I do have the lib already available in frameworks. please have a look at the screenshots I added. – Incpetor Apr 13 '15 at 12:07
  • Please add Bolts.framework in your framework files as well. Also keep it right in the top – Adam Young Apr 13 '15 at 12:21
  • can you please tell me how did you find `FacebookSDK.framework` in your linkers? and also from where did you add? – Incpetor Apr 14 '15 at 03:06
  • The FacebookSDK folder you downloaded, doesn't it have the `FacebookSDK` framework – Adam Young Apr 14 '15 at 04:57
  • nope.. I have checked and downloaded multiple times.. see picture 2 I have added screenshot of what `Documents/FacebookSDK` folder has – Incpetor Apr 14 '15 at 05:05
  • I am not sure. I download this a week back. [link](https://developers.facebook.com/docs/ios) . This had the required – Adam Young Apr 14 '15 at 05:58
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/75168/discussion-between-inceptor361-and-adam-young). – Incpetor Apr 14 '15 at 06:26