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.
Related
Trying to insert Google Ads/Firebase into a test app. Suspect I've almost got this working but. Using the Google notes from https://firebase.google.com/docs/admob/ios/quick-start
When I compile I receive "Linker code failed with exit code 1":
ld: warning: directory not found for option '-L/Users/edward/Library/Developer/Xcode/DerivedData/TotalConversion-gtwxqoywudjqpodqkpfpwcnovyuz/Build/Products/Debug-iphoneos/GoogleToolboxForMac'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have created the Podfile as instructed with:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ’7.0’
target 'TotalConversion' do
pod 'Firebase/Core'
pod 'Firebase/AdMob'
end
and then run a pod update. I don't see a .xcworkspace file referred to in the docs. Does the iOS, '7.0' line above need to be altered?
I presume that using pods GoogleAds is instead of the standard framework (Build Phases/Link Binary) approach.
If there is a linker error, this might be few things. First, check if you haven't open .xcodeproj instead of .xcworkspace by mistake. If not, the solution might be simple project cleaning by pressing cmd+shift+k. At last, check if those libraries are linked with project and are having status required in your target's general/build phases (Pods_YourProjectName.framework).
In Podfile you can actually comment out lines with source and platform by placing # in front of them. Go to terminal, cd to your project directory and try pod install once again, maybe that will do the job.
Sorry for not placing this in comments but my reputation doesn't allow me doing it.
The {projectName}.xcworkspace folder should be in the same folder as the .xcodeproj that you have open. Close Xcode {projectName}.xcodeproj instance and open {projectName}.xcworkspace using the Finder, command line, or Xcode open.
[!] The target `project name` is declared twice.
when i m trying to update the pod files in the terminal,i am getting the error in the above..kindly help..
i have tried to uninstall and reinstalling the pod files but still giving the same error.kindly give a step by step process as i am new in this concepts.
how can i update my pod files . there is another error that is shown in the app when i run the app.
ld: library not found for -lPods-aditestdemo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
for this i am updating the pod files kindly help me out. what i can do to rum my app.
this is because when you hit update command from terminal, this updates your existing pod file . There is
To remove bug just do :-
(1).delete podfile, podfile.lock, Pods, and your .xcworkspace.
(2).and reinit pod file and install it your project path.
Refer the link this will clear your doubt:-
https://guides.cocoapods.org/using/pod-install-vs-update.html
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 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.
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