When trying to build my app via XCode, I get an error in file Plugins/cordova-plugin-analytics/CDVGoogleAnalytics.m : Use of undeclared identifier 'FIRApp'

Please help me to solve this problem

Thanks.

I was getting same issue after adding Firebase analytics.

Resolved this by adding

#import <FirebaseCore/FIRApp.h>

in

#import “CDVGoogleAnalytics.m”