3

I try to add the Google Analytics into my project, but I see the error:

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

I've already tried to Clean my project, tried deleting Derived Data, tried adding pod 'GoogleToolboxForMac/Logger' to the Podfile, tried removing and re-adding the Pod. However, nothing helps. I saw all the suggestions from another similar topics on Stackoverflow.

What may cause the described error and how can I fix it?

user3785463
  • 119
  • 1
  • 8
  • Look at my answer http://stackoverflow.com/questions/40358719/framework-not-found-googletoolboxformac/41221449#41221449 – iPatel Dec 19 '16 at 11:20

3 Answers3

2

To eliminate linker errors I had to add 3 libraries, via {projectName} > Build Phases > Link Binary With Libraries:

  • Add Other > {projectName} > Pods > GoogleAnalytics > Libraries > libGoogleAnalytics.a
  • iOS 10.0 > CoreData.Framework
  • iOS 10.0 > libsqlite3.tbd
Rick Mohr
  • 1,821
  • 1
  • 19
  • 22
0

Once you install pod file use Myapp.xcworkspace. Do not use regular Xcode project

Mashqur
  • 9
  • 2
0

It may be case that you have installed Pod successfully and thereafter you continued with your project by ignoring message on Terminal :

Screenshot

Now, close your project and open it using Workspace. This worked for me!

Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177