From the official documentation Google suggest to use the submodule from the Google pod
pod 'Google/Analytics'
But if you search on cocoapods.org there is separate pod maintained by Google as well, called GoogleAnalytics
As of this writing, in the official documentation they also have a note, which make things more confusing:
Note: Beginning with version 3.16 of the Google Analytics for iOS SDK, Xcode 7.3 or higher is required.
Current version of Google pod is 3.0.3
Current version of GoogleAnalytics pod is 3.16.0
From the .podspec of Google we can see that it has as dependency 'GoogleAnalytics' but also 'FirebaseAnalytics'
Run open Podfile. Which opens the Podfile in textEdit. Add pod'CorePlot', '~> 1.4' to it and save. Run pod install -- NOTE* that is **pod update if already installed.
A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.
Ruby was a good choice to let users monkey-patch whatever they needed for their projects. Ruby is an excellent language for CLI tools that do a lot of string manipulation. They made an effort to make sure @CocoaPods would work with the Ruby that shipped with OS X, even when not having the Xcode CLI Tools installed.
the Google/Analytics
pod is the one that should be used when implementing Google Analytics in your iOS app. You are correct in that the GoogleAnalytics
pod is not meant for direct use; we'll be updating the pod description.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With