Closed rpragesh closed 2 years ago
I'm having the exact same issue. building in Xcode throws this error.
.../platforms/ios/BolinCustomerPortal/Plugins/cordova-plugin-google-analytics/UniversalAnalyticsPlugin.h:6:9: 'GoogleAnalytics/GAI.h' file not found
Have this same issue, somehow the GoogleAnalytics dependency isn't getting installed.
Workaround: edit config.xml and add `
` hope this helps
Have this same issue, somehow the GoogleAnalytics dependency isn't getting installed.
Workaround: edit config.xml and add
<platform name="ios"> <pod name="GoogleAnalytics" version="3.17.0" /> </platform>
hope this helps
Hey @gaurav112 I tried this, even switched to latest cordova ios platform, but still got the error with GAI.h. Maybe I'm missing something, can you explain what's the probable cause for this error. So that we can get clear understanding while debugging.
@shindenitish the probable cause is "GoogleAnalytics" dependency not getting installed via pods. However, you can open XCode and add "GoogleAnalytics" in your pod file, that isn't a fix but a hack.
I am building an ionic 4 application and using
"cordova-plugin-google-analytics": "^1.9.0"
plugin and when I try to build iOS app it throws'GoogleAnalytics/GAI.h' file not found
error. I tried downgrade plugin toversion 1.8.6
but not working.I get this issue when trying to build the app in build pipeline in azure devops. should I need to change to a specific version?