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
I had the same error and I fixed it by copying FBSDKCoreKit.framework into my project folder before adding it to the project.
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
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").
Try searching for it in Build Settings. I removed Facebook from Cocoapods and it was still in other linker flags causing problems.
Related
Hi I just opened my xCode project after 1 or 2 months, and an error automatically appeared :
ld: framework not found FirebaseAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I did some searches and I see that FireBase is a new "tool" implemented by Google, but I didn't say to my project to use it, I don't know how FireBase appeared in my project, because of I'm using Google Analytics ?
So I wan't to know if I have to use FireBase to use Google Analytics, if yes, how can I resolve this error and add perfectly FireBase ?
Or can I just delete it and use only Google Analytics ? So how to delete it ?
Already see this: framework not found FirebaseAnalytics Doesn't helped me.
I have errors wive command lines:
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] The `SolutisTests [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SolutisTests/Pods-SolutisTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `SolutisTests [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SolutisTests/Pods-SolutisTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
in our last sprint we tried to add some cocoapods to the project.
Unfortunately, the pods are not added automatically to the compile sources in the base project in Xcode.
That means that I needed to copy some relevant .m files to the list.
Well, it worked just fine for one pod.. But now I'm trying to add ShakeKit Pod and it's just not right! Plus, I don't see the benefits of using cocoapods if I need to import every .m file to my project.
Anyone here knows to tell me what I'm doing wrong?
Environment Details:
iOS SDK - 8.3
Xcode - 6.3
I've found that $(inherited) was missing from my Other Linker Flags build setting. Applying this option fixed a missing library issue I was seeing.
Just like the guy from this thread :
Error: ld: library not found for -lPods with CocoaPods
ld: warning: directory not found for option '-F/Users/igorkhomenko/workspace/quickblox-ios-sdk/Framework'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am new to ios development and quickblox
I get this kind of error..what it is about ? M i missing to add some file .
you seem to have used cocoapods to add this library to your project.
Cocoapods creates, and requires you to use, an xcworkspace file to manage your Xcode project.
This is an error that occurs when you are still using the xcodeproj file instead of the xcworkspace.
Either that or your cocoa pods setup is broken. Try running pod install again or see the website to fix it.
Did you add the quicklblox library through Target Settings -> Build Phases -> Link binary with libraries -> + button?
I'm trying to integrate Flurry into my App and I keep getting the following error:
ld: library not found for -lFlurry_5.1.0
I am installing with Cocoapods (0.33.1)
There is a linker flag -lFlurry_5.1.0 added by pods to the project and it does not resolve.
The solution is to link against this library in your targets build phases as shown below. You can do this by clicking the '+' button below 'Link With Binary Libraries'. The library is located at (PROJECT_DIR)/Pods/FlurrySDK/Flurry/Flurry_5.1.0.a
After adding this, you need to remove -lFlurry_5.1.0 flag from 'Other Linker Flags' under 'Build Settings' tab for your target.
Below are some screenshots for these steps.
I'm getting a error from cocoa pods that I've never seen before. I've had it working with several dependencies just fine. I recently added the TestFlightSDK as a dependency through pods and I'm unable to Archive the project. It builds just fine to devices but refuses to Archive. Has anyone else experienced this issue?
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Library Search Paths looks like this (for both debug and release):
$(SRCROOT) recursive
$(PODS_ROOT) recursive
$(inherited) recursive
Ok so I found the answer (that worked for me) using some suggestions from this post
I was actually getting a different Warning that I hadn't noticed.
Pods was rejected as an implicit dependency for 'libPods.a' because its
architectures 'armv7 armv7s' didn't contain all required architectures
'armv7 armv7s arm64'
It was actually related to the Pods target not having the correct architectures. It turned out to be a xCode bug after all. In my Pods Target I had all the correct acrhitectures selected, armv7, armv7s, and arm64.
THE SOLUTION:
Update cocoapods to the newest version that supports 64 arch.
sudo gem update cocoapods
Delete all Valid Architectures and do a project clean (which fails alot..)
Re-Add the architectures that you just removed and voilĂ !
my fault was an old cocoa pods integration. had to delete the pod-.a files in "/Frameworks" folder and pod-.xcconfig in "/Pods".
-> run 'pod install'
everything fine
Other solution is if you update your pods with new target, you will check libpods.a, maybe was deleted and system not found it. Make sure that libpods is in your Linked Framework and libraries in General information (where you change version, bundle identifier and build).
In my case problem was with Scheme.
go to Product -> Scheme -> Edit Scheme
click on Build
add the Pods static library, and make sure it's at the top of the list
clean and build again
You can fix this issue if this belongs to libraries by selecting your Target, then going to "Build Phases" in "Link Binary With Libraries", and removing ".a" file of that library. After this Clean and Build.
Hope this helps.