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'
- Is GoogleAnalytics not intended for direct use (like GoogleUtilities)?
- Why Google pod (version 3.0.3) is using 'FirebaseAnalytics' pod and how does this affect the Google Analytics dashboard?
Google/Analytics. It now tells you to useGoogleAnalytics, however it gives you the wrong import statement. - Jeremy Hicks