Cordova-plugin-googleplus error on build

Hi,

When i try to use this plugin for google login on cordova

<plugin name="cordova-plugin-googleplus" spec="^8.5.0">

<variable name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps.339787967114-sk5kr9odujd5jvpbhadmb973qf963q4d"/>

<variable name="WEB_APPLICATION_CLIENT_ID" value="339787967114-sk5kr9odujd5jvpbhadmb973qf963q4d.apps.googleusercontent.com"/>

</plugin>

I got this error:

UserError: [!] CocoaPods could not find compatible versions for pod “GoogleUtilities/UserDefaults”:
In snapshot (Podfile.lock):
GoogleUtilities/UserDefaults (= 7.13.3, ~> 7.11, ~> 7.13, ~> 7.8)

Check your log file for more information.

This is likely to indicate that you have two plugins both requiring the GoogleUtilities pod and what they have locked the versions to are incompatible. I noticed that cordova-plugin-googleplus hasn’t been updated in three years and the associated repo is archived. Is there a fork available that’s been recently updated?

This is my config.xml , Could you please help me figure out what is causing the conflict

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.pusher.www" ios-CFBundleVersion="201406098" version="3.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>MyApp</name>
    <description>An awesome Ionic/Cordova app.</description>
    <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <allow-navigation href="*" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="phonegap-version" value="cli-9.0.0" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="android-minSdkVersion" value="26" />
    <preference name="android-targetSdkVersion" value="34" />
    <preference name="android-compileSdkVersion" value="34" />
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="OverrideUserAgent" value="Mozilla/5.0 Google" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="300" />
    <preference name="AutoHideSplashScreen" value="false" />
    <access launch-external="yes" origin="whatsapp://*" />
    <allow-navigation href="http://ionic.local/*" />
    <allow-navigation href="https://*.google.com/*" />
    <allow-navigation href="data:*" />
    <preference name="AndroidXEnabled" value="true" />
    <preference name="AllowInlineMediaPlayback" value="true" />
    <preference name="AppendUserAgent" value="iphone" />
    <preference name="AndroidLaunchMode" value="singleTask" />
    <platform name="android">
        <preference name="Scheme" value="http" />
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
            <application android:networkSecurityConfig="@xml/network_security_config" />
        </edit-config>
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
            <application android:exported="true" />
        </edit-config>
        <config-file parent="/manifest" target="app/src/main/AndroidManifest.xml">
            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        </config-file>
        <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
        <allow-intent href="market:*" />
        <icon qualifier="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon qualifier="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon qualifier="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon qualifier="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <resource-file src="google-services.json" target="app/google-services.json" />
        <preference name="GradlePluginGoogleServicesVersion" value="4.3.15" />
        <preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/android/screen/land-ldpi.png" />
        <preference name="AndroidWindowSplashScreenBackground" value="#ffffff" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
        <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
        <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
        <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
        <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
        <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
        <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
        <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
        <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
        <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
        <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
        <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
        <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
        <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
        <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
        <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
        <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
        <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
        <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
        <preference name="WKWebViewOnly" value="true" />
        <feature name="CDVWKWebViewEngine">
            <param name="ios-package" value="CDVWKWebViewEngine" />
        </feature>
        <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    </platform>
    <plugin name="cordova-plugin-statusbar" spec="3.0.0" />
    <plugin name="cordova-plugin-ionic-webview" spec="^5.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
    <plugin name="cordova-plugin-inappbrowser" spec="5.0.0" />
    <plugin name="cordova-plugin-device" spec="2.1.0" />
    <plugin name="cordova-plugin-network-information" spec="3.0.0" />
    <plugin name="cordova-plugin-firebasex" spec="16.4.0">
        <variable name="FIREBASE_ANALYTICS_COLLECTION_ENABLED" value="true" />
        <variable name="FIREBASE_PERFORMANCE_COLLECTION_ENABLED" value="true" />
        <variable name="FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_FCM_AUTOINIT_ENABLED" value="true" />
        <variable name="FIREBASE_ANALYTICS_WITHOUT_ADS" value="false" />
        <variable name="ANDROID_ICON_ACCENT" value="#FF00FFFF" />
        <variable name="ANDROID_FIREBASE_PERFORMANCE_MONITORING" value="false" />
        <variable name="ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION" value="18.0.4" />
        <variable name="ANDROID_PLAY_SERVICES_AUTH_VERSION" value="20.7.0" />
        <variable name="ANDROID_FIREBASE_ANALYTICS_VERSION" value="21.5.0" />
        <variable name="ANDROID_FIREBASE_MESSAGING_VERSION" value="23.3.1" />
        <variable name="ANDROID_FIREBASE_CONFIG_VERSION" value="21.5.0" />
        <variable name="ANDROID_FIREBASE_PERF_VERSION" value="20.5.0" />
        <variable name="ANDROID_FIREBASE_AUTH_VERSION" value="22.2.0" />
        <variable name="ANDROID_FIREBASE_INAPPMESSAGING_VERSION" value="20.4.0" />
        <variable name="ANDROID_FIREBASE_FIRESTORE_VERSION" value="24.9.1" />
        <variable name="ANDROID_FIREBASE_FUNCTIONS_VERSION" value="20.4.0" />
        <variable name="ANDROID_FIREBASE_IID_VERSION" value="21.1.0" />
        <variable name="ANDROID_FIREBASE_INSTALLATIONS_VERSION" value="17.2.0" />
        <variable name="ANDROID_FIREBASE_CRASHLYTICS_VERSION" value="18.5.1" />
        <variable name="ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION" value="18.5.1" />
        <variable name="ANDROID_GSON_VERSION" value="2.9.0" />
        <variable name="ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION" value="1.4.2" />
        <variable name="ANDROID_GRPC_OKHTTP" value="1.46.0" />
    </plugin>
    <plugin name="cordova-plugin-androidx-adapter" />
    <plugin name="cordova-plugin-facebook-connect" spec="^3.2.0">
        <variable name="APP_ID" value="330160712829477" />
        <variable name="APP_NAME" value="Stacks Auth V6" />
    </plugin>
    <plugin name="cordova-plugin-googleplus" spec="^8.5.0">
        <variable name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps.339787967114-sk5kr9odujd5jvpbhadmb973qf963q4d"/>
        <variable name="WEB_APPLICATION_CLIENT_ID" value="339787967114-sk5kr9odujd5jvpbhadmb973qf963q4d.apps.googleusercontent.com"/>
    </plugin>
    <universal-links>
        <host name="neat-planet-378416.firebaseapp.com" scheme="https">
            <path url="/__/auth/callback" />
        </host>
    </universal-links>
</widget>

Can you provide a build log from your app? That should help me determine which plugin is the problem.

Here you go: https://apps.volt.build/350fffc6-c4a4-4258-bd20-4c8cdcb1b03f/voltbuilder.log

Reviewing your log, I found this:

cordova-plugin-googleplus depends on GoogleSignIn, which may conflict with another plugin. GoogleSignIn@6.2.4 is already installed and was not overwritten.

This in addition to the fact that the googleplus plug hasn’t been updated in 3 years in contributing to the issues.

Finally this message also gives a clue:

Specs satisfying the `GoogleUtilities/UserDefaults (= 7.13.3, ~> 7.11, ~> 7.13, ~> 7.8), GoogleUtilities/UserDefaults (= 7.2.2)` dependency were found, but they required a higher minimum deployment target.

What is your minimum deployment target set to? It’s possible you can resolve this by bumping your minimum target up.

Sorry for the delayed response,
This is the minimum deployment target:

<preference name="UseSwiftLanguageVersion" value="5"/>
<preference name="SwiftVersion" value="5.0"/>
<preference name="deployment-target" value="12.0"/>

with the same error

Increasing your deployment target may resolve the issue, but ultimately the plugin needs to be updated.

I’m looking for an updated and well-maintained plugin for implementing Google login. Could you please let me know if there are any recommended options currently available?