Comment out <framework tag> for Cordova 8.x CLI or older versions
MODIFY
plugin.xml
plugin.xml
<pod name="GoogleMaps" spec="~> 3.1.0"/>
</pods>
</podspec>
+ <!-- Use for Cordova 8.x users -->
+ <!--
<framework src="GoogleMaps" type="podspec" spec="~> 2.7.0" />
+ -->
<hook type="before_platform_add" src="src/ios/check_sdk_version.js"/>
<hook type="before_plugin_install" src="src/ios/check_sdk_version.js"/>

Comment out <framework tag> for Cordova 8.x CLI or older versions