Xcode Compiler Error: ld: library not found for -lPods - ios

I'm trying to use the pod library to the project "BC LitterBox", after install pod according to http://cocoapods.org/ and Complier LitterBox, I'm now down to 1 compilation error, which I can't seem to get rid of.
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone know what could be causing this?

When you install a pod, CocoaPods creates a new workspace that includes your project and whatever pod(s) you installed.
You'll have to close your project and open that workspace.

Make sure you are opening the .xcworkspace file, not the .xcodeproj

You can perform this steps:
Close .xcworkspace and .xcproject (Xcode Projects);
Run pod install and pod update;
Open the new .xcworkspace;
Clean and Build your Project;
Now, you are able to run normally.

When I try compile my project which used CocoaPods I have following linking error:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The reason of this problem is version of CocoaPods. Project was cloned from repo, then pods was installed. But my version of cocoapods is 1.0.1. Version of cocoapods which declared in Podfile.lock is 0.39.0.
Solution is following(In terminal):
1) Uninstall CocoaPods.
sudo gem uninstall cocoapods
2) Install version of cocoapods which declared in the Podfile.lock
sudo gem install cocoapods -v 0.39.0
3) You can check version cocoapods:
gem which cocoapods
4) Clone project then install dependencies
pod install

Related

How to solve this error ”_OBJC_CLASS_$_MBProgressHUD", referenced from:?

I have an existing project with different project name & workspace name. There is no podfile in the application folder. It has Pods folder with Pods.xcodeproj file. All other files are missing. But we can open and run the project using workspace file. Third party libraries are added manually. I have installed pod and created workspace with same name. I can open and run the application.
I have removed MBProgressHUD library and installed it using Cocoapods. After that I can’t run the application and got the following error message.
"_OBJC_CLASS_$_MBProgressHUD", referenced from: objc-class-ref in
BlackboardGroupController.o objc-class-ref in MenuController.o ld:
symbol(s) not found for architecture x86_64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
Remove all CocoaPods and Integrate again. Please do the following steps to remove Cocoapods.
1.Delete the standalone files (Podfile Podfile.lock and your Pods directory)
2.Delete the generated xcworkspace
3.Open your xcodeproj file, delete the references to Pods.xcconfig and libPods.a (in the Frameworks group)
4.Under your Build Phases delete the Copy Pods Resources, Embed Pods Frameworks and Check Pods Manifest.lock phases.
5.This may seem obvious but you'll need to integrate the 3rd party
libraries some other way or remove references to them from your code.
pod deintegrate and pod clean are two designated commands to remove CocoaPod from your project/repo.
Here is the complete set of commands:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod clean
$ rm Podfile
Clear DerivedData :
rm -rf ~/Library/Developer/Xcode/DerivedData
Close Xcode and install cocoapods again

Framework could not be found and the linker command failed with exit code 1 (use -v to see invocation)

I install the following pods to my app (im using swift 3.0) and just tried to open it,build and run the app and the first thing is see is with the error
ld: framework not found Crashlytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The pods i installed in the pod file as follow
pod 'Fabric'
pod 'Digits'
end
What am i missing. link of the screenshot as follow.
From the image: Framework not found Crashlytics. Did you add the Crashlytics pod to your Podfile? Here is an example:
pod 'Crashlytics'
Then reinstall your pods by running:
pod install
After installing the pods, you should open the .xcworkspace file associated with your project in order for the pods to be properly built and integrated into your solution.

error after setting up firebase and pods

I followed the firebase offical guide to set up my podfile.
However I now get this error when I try to run my app:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You need to open the .xcworkspace file after running pod install or pod update, not the .xcproject.
It should have been generated by the pod command, and will contain both your regular project and the CocoaPods project with the dependencies in.

library not found for -lCloudinary

Library not found whenever I added from pod.
I have already added pod from terminal.
Error:
ld:library not found for -lCloudinary
clang: error: linker command failed with exit code 1 (use -v to se invocation)
When you perform pod install or pod update you must use the new <YourProject>.xcworkspace file instead of the old <YourProject>.xcodeproj file.
It happens because .xcworkspace contains your .xcodeproj and the pods. If you just run .xcodeproj the pods will be missing.

libPoads.a file is missing in CocoaLumberjack pod install

I am trying to install CocoaLumberjack using pod install. Installation successfully completed but libPods.a file is missing in my project. Without this lib file I am getting this following error,
ld: library not found for -lPods-CocoaLumberjack
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am not sure why this file is missing I couldn't find any solution for this. Any help would be appreciated. Thanks is advance.
Did you open the xworkspace that Cocoapods created, instead of xcodeproj?
Or check if you install pod in the right directory. I mean in the directory of your Project:
cd myProject
pod install
Maybe check the Configurations in the Info of your Project if the pod is chosen in the Configuration Set.

Resources