I get these errors when I try to build an iOS application.
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to s
This was my issue while trying to integrate Firebase to my Xcode project using cocoapods
library not found for -lGoogleToolboxForMac
linker command failed with exit code 1 (use -v to see invocation)
After hours of searching and trying out various fixes listed in the stackoverflow, my issue was finally fixed doing following steps
Build Settings
, search for Other Linker Flags
, remove all values expect $(inherited)
Do this for all targets.
ios/Pods
)pod update
Voila! All linker errors will be gone.
When you clone project from somewhere which uses Cocoapods you need to install them to your project.
Here step-by-step what you need to do:
Good luck!
If anyone came here to resolve an error with react-native-fbsdk
after installing it using Cocoapods
, keep in mind that you have to remove all the other .a files in your Projects build phases and only keep the .a from cocoapods called libPods-WhateverAppName.a
.
This is usually caused from running rnpm link
and the way rnpm works.
After I removed the facebook core .a file from my build phases my project was up and running once again.
Had a same issue after upgrading Deployment target
from 7.0
to 8.0
and enabling use_frameworks!
cocoapods
did not delete previously generated PodName.a
files from the Frameworks
section of my project.
So I had to delete those manually, because they caused the linker error
For me this is worked. I have changed my app name from someApp to otherApp. And I am using cocoa pods for multiple third party services integration. So Because of that 2 libPod files added(As I have changed name and target of app). Finally I had to remove one libPod. And it worked.
target-> Build phases-> Link Binary With Libraries
It seems project has been using cocoapods. and that files are missing from your project.
You cant just download it from git. You need to install it from cocoapods.
for more help, you may follow Introduction to CocoaPods Tutorial
If the project uses CocoaPods
be aware to always open the .xcworkspace
file instead of the .xcodeproj
file