[Google Login Plugin] Google Plus Plugin,Error generating {App} (iOS):Error installing Cordova plugin

[Google Login Plugin] Google Plus Plugin,Error generating {App} (iOS):Error installing Cordova plugin

  
Forge Component
(6)
Published on 2017-07-06 by Labs
6 votes
Published on 2017-07-06 by Labs

Hello Guys,

I am using the cordova-plugin-googleplus plugin and works fine on an android mobile app.

I am unable to generate a IOS App,its throwing the below error.

Error generating {Application Name} (iOS): Error compiling Cordova plugin: SWAP/Plugins/cordova-plugin-googleplus/GooglePlus.m.


PS.i have added the reverse client id to the extensibility.

Any pointers to solve this issue.

Thank you in advance



Me too, please help...

{
    "plugin":
        {
            "url": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus#5.0.3"
        },
    "preferences": {
        "global": [{
            "name": "REVERSED_CLIENT_ID",
            "value": "com.googleusercontent.apps.478731357925-99lqi7u8c0jn5hdb2gapf6qjostqrjuh"
        }]
    }
}

[2018-03-01T11:15:45.053Z] [INFO] Start processing job request...
[2018-03-01T11:15:45.057Z] [INFO] Getting builder version...
[2018-03-01T11:15:45.059Z] [INFO] Start generating application...
[2018-03-01T11:15:45.060Z] [INFO] Nativizer version: 1.1.x
[2018-03-01T11:15:45.060Z] [INFO] Template version: 2.3.6
[2018-03-01T11:15:45.060Z] [INFO] Creating a temporary folder for the application...
[2018-03-01T11:15:45.061Z] [INFO] Creating the required directory structure for your cordova application...
[2018-03-01T11:15:48.208Z] [INFO] Getting application resources...
[2018-03-01T11:15:48.222Z] [INFO] Processing application resources...
[2018-03-01T11:15:48.490Z] [INFO] Generating application assets...
[2018-03-01T11:15:49.148Z] [INFO] Applying configurations in the config.xml file...
[2018-03-01T11:15:49.157Z] [INFO] Applying advanced configurations in the config.xml file...
[2018-03-01T11:15:49.158Z] [INFO] Applying custom applicaton icons...
[2018-03-01T11:15:49.158Z] [INFO] Applying custom applicaton splashscreens...
[2018-03-01T11:15:49.158Z] [INFO] Applying applicaton preferences...
[2018-03-01T11:15:49.162Z] [INFO] Writing your cordova preferences...
[2018-03-01T11:15:49.163Z] [INFO] Adding target platform...
[2018-03-01T11:16:08.561Z] [INFO] Applying plugins in the config.xml file...
[2018-03-01T11:16:08.562Z] [INFO] Plugin Id: https://github.com/apache/cordova-plugin-file.git#4.3.3
[2018-03-01T11:16:08.562Z] [INFO] Plugin Action: add
[2018-03-01T11:16:11.003Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-camera#2.3.1.OS
[2018-03-01T11:16:11.003Z] [INFO] Plugin Action: add
[2018-03-01T11:16:12.965Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1
[2018-03-01T11:16:12.965Z] [INFO] Plugin Action: add
[2018-03-01T11:16:14.742Z] [INFO] Plugin Id: https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os
[2018-03-01T11:16:14.742Z] [INFO] Plugin Action: add
[2018-03-01T11:16:16.246Z] [INFO] Plugin Id: cordova-plugin-sim@1.3.0
[2018-03-01T11:16:16.246Z] [INFO] Plugin Action: add
[2018-03-01T11:16:17.421Z] [INFO] Plugin Id: https://github.com/OutSystems/OneSignal-Cordova-SDK.git#outsystems
[2018-03-01T11:16:17.421Z] [INFO] Plugin Action: add
[2018-03-01T11:16:23.097Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-fingerprint.git#1.0.1
[2018-03-01T11:16:23.097Z] [INFO] Plugin Action: add
[2018-03-01T11:16:25.617Z] [INFO] Plugin Id: https://github.com/EddyVerbruggen/cordova-plugin-googleplus#5.0.3
[2018-03-01T11:16:25.617Z] [INFO] Plugin Action: add
[2018-03-01T11:16:30.224Z] [ERROR]
You have been opted out of telemetry. To change this, run: cordova telemetry on.
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/EddyVerbruggen/cordova-plugin-googleplus#5.0.3"
Fetching plugin "https://github.com/EddyVerbruggen/cordova-plugin-googleplus" via git clone
Running command: git clone https://github.com/EddyVerbruggen/cordova-plugin-googleplus /var/folders/3t/rl3697tn4wzc2tb1zrwht3rc0000gr/T/git/1519902986276
Command finished with error code 0: git clone,https://github.com/EddyVerbruggen/cordova-plugin-googleplus,/var/folders/3t/rl3697tn4wzc2tb1zrwht3rc0000gr/T/git/1519902986276
Running command: git checkout 5.0.3
Command finished with error code 0: git checkout,5.0.3
Repository "https://github.com/EddyVerbruggen/cordova-plugin-googleplus" checked out to git ref "5.0.3".
/tmp/build/source/plugins/cordova-plugin-googleplus"...
Plugin "cordova-plugin-googleplus" fetched.
Calling plugman.install on plugin "/Users/mabs02/NativeBuilder/builds/9eb7fa3c-2527-45ac-ae8a-9f3c4b6614a0/source/plugins/cordova-plugin-googleplus" for platform "ios
Installing "cordova-plugin-googleplus" for ios
Running command: /Users/mabs02/NativeBuilder/builds/9eb7fa3c-2527-45ac-ae8a-9f3c4b6614a0/source/platforms/ios/cordova/version
Command finished with error code 0: /Users/mabs02/NativeBuilder/builds/9eb7fa3c-2527-45ac-ae8a-9f3c4b6614a0/source/platforms/ios/cordova/version
Failed to install 'cordova-plugin-googleplus':Error: Variable(s) missing: REVERSED_CLIENT_ID
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:362:23
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
Error: Variable(s) missing: REVERSED_CLIENT_ID
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:362:23
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)

[2018-03-01T11:16:30.224Z] [ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-googleplus.
[2018-03-01T11:16:30.225Z] [INFO] Zipping application source...
[2018-03-01T11:16:39.434Z] [INFO] Application was not successfully generated!
[2018-03-01T11:16:39.435Z] [INFO] Execution time: 55023ms

Ah found it.

It's not in preferences, but plugin's variable:

{
    "plugin":
        {
            "url": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus#5.0.3",
            "variables": [{
                "name": "REVERSED_CLIENT_ID",
                "value": "com.googleusercontent.apps.478731357925-99lqi7u8c0jn5hdb2gapf6qjostqrjuh"
                }]
        }
}