Google Analytics Linker Error. library not found for -lGGLAnalytics

I just added Google Analytics to my pods as follows:

 pod 'Google/Analytics' 

as the GA documentation suggests. Now my project will not be connected. It says:

  library not found for -lGGLAnalytics 

Has anyone ever come across this? Thanks

+5
source share
3 answers

I got the same error. Solved by renaming LIBRARY_SEARCH_PATHS to the default value.

Select a target and go to Build Settings. In the "Search Paths" section, select "Library Search Paths" and reset to default by clicking the backward area.

As a result, the value for the library search paths should change from empty:

enter image description here

default:

enter image description here

Diff in .pbxproj just removes the .pbxproj value:

enter image description here


I am using pods version 0.39.0 , Xcode 7.2.

+1
source

In my case, the solution was deleted all but $ (inherited) in Target → Build Settings → Other linker flags

Then, of course, clean and build!

+1
source

I came across this and had a very strange reason and a great solution from the above, so I thought it might help someone else who appears here.

I had a working project in my regular directory, and I saved it to the SVN repository. I needed to go back to the previous version, so I extracted a new copy from SVN and updated it to the version I needed.

Then I started getting library not found for -lGGLAnalytics errors library not found for -lGGLAnalytics .

It turns out that SVN doesn't really like it when you register *.a files and it ignores them by default. So in my SVN repository there was all the Google Pod code, but there were no libGGLAnalytics.a files and a couple of other .a files.

How I decided it:

I copied the Pods/Google and Pods/GoogleAnalytics from my real project. Then I installed pod install from the command line, which updated the files of my project so that they refer to those files that were previously missing.

I did Build Clean and everything is fixed.

0
source

Source: https://habr.com/ru/post/1239979/


All Articles