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.
Related
After running pod install with:
pod 'Firebase/Analytics'
I am now getting the following build error:
ld: framework not found FirAnalyticsConnector clang error: linker
command failed with exit code 1 (use -v to see invocation)
I have tried removing FirAnalyticsConnector from the Build Setting's Other Linker Flags (as similar questions' answers suggested), but it does not solve the issue
Any ideas as to why I am getting this build error when I was previously able to build the project?
I managed to fix this by removing the Firebase pod completely, then reinstalling.
I first removed it from my podfile, did another pod install, then deleted all references in my code (and Other Linker Flags). I also had some old (previously Twitter, then Google) Fabric code.
Once I got the project to build and run without that cocoapod, I tried installing it fresh following Firebase documentation and it works with no errors now.
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.
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 installed the braintree pod a long time ago in my .workspace project and tried to build my app in the .xcodeproj but am getting this error
ld: library not found for -lPayPalMobile
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Afterwards, the .workspace failed for the same reason. I have never had any problems building the app in the .workspace before this. I searched around for the solution, but nothing has worked so far.
I am not actually using braintree in my project and don't mind removing the framework altogether.
edit I tried updating the pod and got this message
[Debug]target overrides theFRAMEWORK_SEARCH_PATHSbuild setting
defined inPods/Target Support Files/Pods/Pods.debug.xcconfig'. This
can lead to problems with the CocoaPods installation
- Use the $(inherited) flag, or
- Remove the build settings from the target.
edit 2 I deleted the braintree pod and its working fine in the .workspace file, but now the .xcodeproj has this error
ld: library not found for -lPods-AFNetworking clang: error: linker
command failed with exit code 1 (use -v to see invocation)
I searched the project and couldn't find there AFNetworking was (but in my command line it says that pod AFNetworking is being used)
A few things. One - Make sure you're only using one .xcworkspace at a time. Also, did you open .xcworkspace or .xcodeproj? Are you trying to build custom configurations? The only other thing I can think of is your schema containing spaces.
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