google-analytics-plugin: Error during archiving

Today I updated the version of the Cordova plugin (1.9.0) and I got the following error during archiving:

In file included from /path/to/my/app/platforms/ios/MyApp/Plugins/cordova-plugin-google-analytics/UniversalAnalyticsPlugin.m:4:
--
02-Apr-2020 14:28:38 | /path/to/my/app/platforms/ios/myApp/Plugins/cordova-plugin-google-analytics/UniversalAnalyticsPlugin.h:6:9: fatal error: 'GoogleAnalytics/GAI.h' file not found
02-Apr-2020 14:28:38 | #import <GoogleAnalytics/GAI.h>

The fix was easy: use the version 1.8.6. But I wanted to let you know. This issue happened multiple times.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 15

Most upvoted comments

@KAIOAVILA

adds GoogleAnalytics as a dependency on the Pods that work

what do you mean by this?

I added GoogleAnalytics on the pods config.xml <platform name="ios"> <pod name="GoogleAnalytics" version="3.17.0" /> ....

I’m using the cordova-plugin-cocoapod-support plugin to add this dependency to pods

I am also having the same issue. "cordova-plugin-google-analytics": "1.8.6" for this as well