Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error during archiving : 'GoogleAnalytics/GAI.h' file not found

I am trying to build a ionic app for iOS with azure devops build pipeline. I am using latest version of plugin "cordova-plugin-google-analytics": "^1.9.0" I also tried to downgrade the plugin to version 1.8.6 but not working.

cordova-plugin-google-analytics/UniversalAnalyticsPlugin.h:6:9: fatal error: 'GoogleAnalytics/GAI.h' file not found

Open issue on github for this still no solution yet

can anyone help with this? do I need to change a specific version?

like image 666
Ragesh Pikalmunde Avatar asked Jul 02 '20 09:07

Ragesh Pikalmunde


2 Answers

This solved my problem

ionic cordova plugin rm cordova-plugin-google-analytics

npm uninstall @ionic-native/google-analytics

ionic cordova plugin add [email protected]

npm install @ionic-native/google-analytics

ionic cordova platform rm ios 

ionic cordova platform add ios
like image 160
Mustafa Bekeç Avatar answered Oct 21 '22 20:10

Mustafa Bekeç


add this line "cordova-plugin-google-analytics": "1.8.6" in package.json and run it. it will fix the problem.

like image 38
Ragesh Pikalmunde Avatar answered Oct 21 '22 18:10

Ragesh Pikalmunde