iOS error : library not found for -lGSDK_Overload - ios

After pod update i am seeing the following error
library not found for -lGSDK_Overload
while trying to build the project. I have been using the Google Analytics in my project. Is this related to Google Analytics ? See the header search path in my project
I have seen the similar questions in SO. But here i have no idea what is GSDK and where the actual issue lies.
Pod update details
Any help will be appreciated

Check for the following solutions
Have u launched your project through [project_name].xcworkspace
Check for libGSDK_Overload_external.a library file at following path file-path/[project_name]/Pods/GoogleSymbolUtilities/Libraries/ in your root folder of the project and add this file to projects target.
Rebuild your project.
If problem still exit remove pod file and reinstall it.

After a few hours of trying the answer provided by #vje1998 and couple of other stuff like deleting derived data, removing cocoapods all together. I finally fixed it. I hope this helps anybody that might have the same issue.
Under Build Settings>Linking>Other Linker Flags. I deleted the row with -lGSDK_Overload. It solved the problem google analytics still works and there are no linker errors. After running pod install Other Linker Flags stays the same so I'm assuming that it wasn't needed to begin with.

I had a similiar issue:
library not found for -lPods
I fixed it by Rohit Agre's answer option 3
pod deintegrate
rm -r [project_name].xcworkspace
pod install

Related

cocoapods Framework file not found after installing github repo pod

So i'm trying to user this pod for my project:
https://github.com/PhamBaTho/BTNavigationDropdownMenu
However, after I install the podfile and try to build my app, I get tons of errors for the target but two of them stood out, however I cannot find a proper solution for this error:
Im opening the .xcworkspace file so I'm sure that's not the issue.
I also tried setting "Buid Active Architecture Only" to 'NO'
I tried using pods deintegrate as well and then re running pod install but that also didn't fix the error.
pls help, I've gone through so many solutions regarding these errors but none have this weird problem of a file from the framework missing.

Framework not found GoogleMapsCore

I am using the Google Maps framework in my iOS app. But I cant seem to understand what is causing the error: Framework not found GoogleMapsCore.
Yes I know that it can't find that module. But I can see it in the Pods folder. See the image below.
I even added the link to that folder in the Framework Search Path.. see image below.
Do you have any idea?
Generally, this is an indication that the Pods projects is not properly built. The best way to solve this is to remove the GoogleMaps pods from your Podfile, run pod install. This will remove the GoogleMaps Framework. Then edit the Podfile again, add the GoogleMaps framework and run pod install again. This will reinstall the pods, and regenerate the Pods Project linking all your frameworks properly to your app. It almost always works for this error - Framework not found.
A good place to start would be those red files. See all those red filenames? They are missing from the project. You need to build them.
Look up cocoapods and follow the instructions to create your workspace file. [it's just one simple install command]
Always from now on, when working on this project, instead of
ProjectName.xcodeproj (blue avatar) you should double-click on the ProjectName.xcworkspace (white avatar) file. That will open the project in Xcode. And the filenames should no longer be red.
I had the same problem. For me I needed to remove armv7s from the valid Architectures. I guess GoogleMaps (2.3.1), which is what I am using, does not build against that architecture.
Delete your PODS folder, and run pod install again.

library not found for -lAsyncDisplayKit

In my project I get the following error in Xcode:
library not found for -lAsyncDisplayKit
My project was configured with pod.
Can anyone help me fix it?
Here you can find some FAQ to resolve main issues with Cocoapods. You have also to check the architecture for the single project and target. If you use a different architecture, Xcode doesn't compile the others and so it will never find the libs
After run 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.
After that you should be able to run normally.

Xcode 7 build failed due to ld: library not found for -lGoogleAnalyticsServices

I have been struggling to get my xcode project to build for the last couple hours. I keep getting the following error:
ld: library not found for -lGoogleAnalyticsServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried almost everything. I saw that the Google Developers website said to use pod 'Google/Analytics', even after trying almost everything I could find on StackOverflow and Google regarding the error, I have had absolutely no luck.
I upgraded to XCode 7 yesterday, everything seemed to work yesterday but today suddenly I started getting this error.
If someone has anything I can do about this error, please help!
Pointing me in the right direction to get it fixed would be awesome too!
Thanks in advance for your help.
The linker flag has been renamed to:
-lGoogleAnalytics
but the Cocoapods settings have not been updated yet. Rename the entry in "Other Linker Flags" and your problem will be solved.
Also, the library (as of the moment I write is version 3.13.0) does not support Bitcode yet, thus please turn off Bitcode in Build Options > Enable Bitcode > Select "No". Clean & Rebuild afterwards.
Same problem occurred in my project. What I did, I just updated all my pods and after that my app got compiled.
Run "pod update" command from terminal in your project directory where the pod file is located.
Please make sure you opened .xcworkspace not .xcodeproj.
Go to Library Search Paths in Build settings and
add
$(PROJECT_DIR)/Pods/build/Debug-iphoneos
$(inherited)
pod install again.
Update cocoapods to the newest version that supports 64 arch.
sudo gem update cocoapods
Delete all Valid Architectures and Re-Add the architectures that you just removed.
Clean and run
Without looking directly at your build settings, there's a number of things that could be causing this. The main issue is in your linker flags you likely have something lingering/incorrect. Most of your pods have the prefix of:
-lPods-WhichIt-SomePodsLib
However your GoogleAnalyticsLibrary has the prefix:
-lGoogleAnalyticsServices
This might indicate a lingering flag from your. Try looking for this entry in Other Linker Flags (Under Build Settings) and clear this out and re-running pod install.
Other things to check:
Cocoapods version is latest stable version
You are using the latest version of Google's official Analytics pod
Your library/framework search paths (build settings) are correctly pointing to the analytics library in question.
For the record, I've had issues with pods and using google libs before they officially started releasing in cocoapods. If all else fails, remove the pod entry from your Podfile and try adding the library manually.

Pod Update is removing "Target Support Files" but not updating my project settings

Admittedly, it's been awhile since I've run a pod update on my project. Today I was trying to do just that, and am running into issues.
After running a 'pod update', the project will not compile. Here is what I've noticed. The update itself appears to run fine, just like normal. I did notice that all the files in 'Pods/Target Support Files` have been removed.
When I attempt to build, I get an error like this one for most of my pods:
lang: error: no such file or directory: '/Users/logan/development/ProjectNameRemoved/src/Pods/Target Support Files/Pods-AJNotificationView/Pods-AJNotificationView-dummy.m'
clang: error: no input files
When I go to the Build Phases for the pods with this error, I can see that the dummy .m file is still in there, even though it doesn't exist:
Removing all of those doesn't seem to help, as then I start getting the following errors:
Digging down into the target's settings I can see the GCC prefix header is still set to use a nonexistent pch file:
I'm not really sure where to go from here. It seems like pod update is removing certain files, but my pbxproj is not being updated to correlate these changes. Do I need to figure out how to do this manually?
I'm currently running XCode7 and CocoaPods 0.38.2
I encountered this problem when I was refactoring a project. After removing a CocoaPod, I had remnants of it that were referenced. Cleaning caches and rebuilding did not resolve the issue.
I was able to resolve it using cocoapods-deintegrate referenced in the user's comment above.
Steps to resolve:
Close the project in Xcode so you don't have Xcode throwing warnings at you about differences between versions (assuming you're using version control, which is a good idea if you're messing with CocoaPods).
Install cocoapods-deintegrate by typing in Terminal:
gem install cocoapods-deintegrate
Type pod deintegrate from the directory of your project.
Open the project in Xcode, clean caches and rebuild. Your Podfile should still be there...leave it alone. We'll get to that in a moment.
Close the project.
Type pod install
Open the project, clean caches and rebuild.
These are the steps I followed to resolve this issue.
Update:
I also used this methodology to resolve a linker error which cropped up when I deleted a reference to a class file instead of the file itself. Upon doing that, I got this error:
error: linker command failed with exit code 1 (use -v to see
invocation)
You can try
pod deintegrate
pod install
*You should be located at Podfile directory
Can you see if the answer in this post can help?
Xcode install on OSX 10.9 - clang: error: no input files
I would try reconstructing my project.
I just got the same thing after re configuring my podfile to accommodate multiple targets. I was just going to use the suggested answer above, but before doing anything I committed my changes in git. That solved the problem. The git commit included lots of file deletions and additions done by cocoapods, so I guess some things were still hanging around.

Resources