XCode Build of Cordova Application Error with ios simulation only in M1 Pro | Working fine on Intel based Mac

Hi everyone. I have an application which is made using Cordova and thereby publish for both ios and android were created.When I try to open the ios publish on xcode on an M1 pro machine I get the below attached error where as the build is successful on an intel machine xcode. The error I am getting is this :

Showing All Issues In /Users/akash7.gupta/Downloads/ios 2/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a(GAIUtil.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/akash7.gupta/Downloads/ios 2/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a' for architecture arm64

Please see Technote 3117.

XCode Build of Cordova Application Error with ios simulation only in M1 Pro | Working fine on Intel based Mac
 
 
Q