Xcode 7 build error: ld: library not found for -lGoogleAnalyticsServices

Every time I open my application using Xcode, I get this error:

ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Then I need to libGoogleAnalyticsServices.a file and mark it again. After removing / checking the target, the application works fine ...

enter image description here

I get 2 other warnings when this happens:

 ld: warning: directory not found for option '-L/Users/vision/Documents/Apps/Mijn Cijfers/Mijn' ld: warning: directory not found for option '-LCijfers' 

Now it looks like Xcode cannot read spaces and is looking for a new Cijfers directory. My application is called: Mijn Cijfers, but I have never had this problem before with spaces in the name of my project.

Each time I check / libGoogleAnalyticsServices.a target flag, new lines are added to the library search path:

enter image description here

I think both cases should do something with the warnings and errors that I receive. It is very annoying to remove the search paths in the library and check / unmark the target so that my application starts up normally. -.-

Does anyone know a solution to solve this odd error?

+7
ios xcode xcode7 target google-analytics-sdk
source share
2 answers

You need to delete all this path except "$ inherited", and then add the path to the Google Analytics library (drag the folder into which you saved the library).

If you follow this, you do not need to check / cancel the library path.

library search Path to screen screen

+13
source share

If you just created a pod file by running the $ pod init command in the terminal,

  • then just close the project and open projectName.xcworkspace instead of projectName.xcodeproj

which will not cause a -lxyzLibray error, for example. -lJSONModel not found.

Now compile and debug again. He will work.

+7
source share

All Articles