Reputation: 41
I am building an iOS messaging application with Layer+Parse. I have copied the files from the sample project into my exisiting application. At first I had over 40 errors upon building but I have worked it down to one. I have just added the Facebook SKD and I am left with this error:
ld: framework not found FBSDKCoreKit clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help with getting this to go away would help greatly. I have already tried these steps:
- Add the -ObjC flag to your project's Other Linker Flags build setting.
- "Allow Non-modular Includes in Framework modules" setting to YES in Build settings
- Set "Enable Modules" (c and Objective-C) to No
Upvotes: 2
Views: 5303
Reputation: 19652
Try searching for it in Build Settings. I removed Facebook from Cocoapods and it was still in other linker flags causing problems.
Upvotes: 0
Reputation: 1385
If you've switched from adding frameworks manually to using cocoapods, make sure you've removed any reference to FBSDKCoreKit (or any other FBSDK kit) from any existing project which is not the Pods project (look at "Link Binary With Libraries" under "Build Phases").
Upvotes: 2
Reputation: 81
The same issue solved by adding the Facebook SDK path in Framework Search Paths
in xCode 1- Select the project 2- Open Build phase tap 3- Search on Framework Search Paths 4- Add this path $(SRCROOT)/../node_modules/react-native-facebook-login/FacebookSDK
Upvotes: 2
Reputation: 210
I had the same error and I fixed it by copying FBSDKCoreKit.framework into my project folder before adding it to the project.
Upvotes: 7