Destiny Faith
Destiny Faith

Reputation: 257

ld: library not found for -lGoogleAnalytics

I'm trying to use Google Analytics library with my xcode project. Everything was working for a few months but then I moved the files on my computer to different locations and now I'm getting this error. I tried fixing the Library Search Paths but I had no success.

Upvotes: 7

Views: 1960

Answers (4)

Abdelrahman Alsaidi
Abdelrahman Alsaidi

Reputation: 1

If you are using pods, check if the value of Library Search Path equals to "Multiple values"

if so, remove "Any Architecture | Any SDK" from both "Debug and Release" by clicking on the minus button beside it.

detailed screenshot

Upvotes: -1

adon
adon

Reputation: 178

Put "$(inherited)" in Library Search Paths for your target

Upvotes: 0

Dmitry
Dmitry

Reputation: 14632

Removing 'Derived Data' for the project on Organizer helped me.

Upvotes: 0

James Martin
James Martin

Reputation: 1060

If you are using Pods to include the GoogleAnalytics iOS SDK into your project, it's worth noting that since the 3.0 release your 'other link flags' needs to include -lGoogleAnalyticsServices not the old -lGoogleAnalytics

Upvotes: 2

Related Questions