Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook sdk framework not found ios7, xcode5

I am new to Facebook SDK with iOS. I want to send invitation to friends on Facebook for using my app for this I am using Facebook (developer.facebook.com)sdk api I have registered my app installed sdk and imported framework. After importing got error as,

 ld: warning: directory not found for option '-  
 F/Users/vijaywebsolutions/Documents/FacebookSDK'
 ld: framework not found FacebookSDKkk
 clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 323
user3146268 Avatar asked Mar 15 '26 02:03

user3146268


1 Answers

Why don't you try CocoaPods for your projects its the dependency manager for Objective-C projects.

Refer CocoaPods

Simple Setup

  • Open Terminal and type sudo gem install cocoapods

Once installed you need to create a simple Pod file in your project directory and add the dependency to that file example.

Go to your project root directory and create Pod File by typing in terminal touch Podfile

Once created add the following line to the podfile.

platform :ios
pod 'Facebook-iOS-SDK',       '~> 3.11.0'

Save the file and then in the terminal(where pod file exist) run pod install

Now it will install the requested dependencies and will create a Workspace for your project, you don't need to take any effort to configure it.

Its the best way to manage your dependencies. Give it a try you won't regret.

like image 109
icodebuster Avatar answered Mar 16 '26 23:03

icodebuster