Hi ALL,

While trying to generate new iOS app I receive the following error in iOS error log 

[2019-09-29T06:37:44.012Z] [INFO] Start processing job request...
[2019-09-29T06:37:44.022Z] [INFO] Start generating application...
[2019-09-29T06:37:44.022Z] [INFO] Template version: 5.1.7
[2019-09-29T06:37:44.022Z] [INFO] Build features: cordovaNoFetch - true
[2019-09-29T06:37:44.022Z] [INFO] Build features: buildTimeout - 20
[2019-09-29T06:37:44.023Z] [INFO] Creating a temporary folder for the application...
[2019-09-29T06:37:44.024Z] [INFO] Creating the required directory structure for your cordova application...
[2019-09-29T06:37:55.512Z] [INFO] Getting application resources...
[2019-09-29T06:37:55.594Z] [INFO] Processing application resources...
[2019-09-29T06:37:56.382Z] [INFO] Generating application assets...
[2019-09-29T06:37:59.377Z] [INFO] Applying configurations in the config.xml file...
[2019-09-29T06:37:59.387Z] [INFO] Applying advanced configurations in the config.xml file...
[2019-09-29T06:37:59.387Z] [INFO] Applying custom application icons...
[2019-09-29T06:37:59.388Z] [INFO] Applying custom application splashscreens...
[2019-09-29T06:37:59.388Z] [INFO] Applying application preferences...
[2019-09-29T06:37:59.401Z] [INFO] Writing your cordova preferences...
[2019-09-29T06:37:59.401Z] [INFO] Applying application accessList...
[2019-09-29T06:37:59.401Z] [INFO] Adding target platform...
[2019-09-29T06:38:42.780Z] [INFO] Applying plugins in the config.xml file...
[2019-09-29T06:38:42.780Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#4.0.1-OS
[2019-09-29T06:38:42.780Z] [INFO] Plugin Action: add
[2019-09-29T06:38:45.177Z] [INFO] Plugin Id: https://github.com/timeseriesBH/cordova-plugin-buildinfo.git
[2019-09-29T06:38:45.177Z] [INFO] Plugin Action: add
[2019-09-29T06:38:47.185Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-fingerprint.git#2.0.1
[2019-09-29T06:38:47.185Z] [INFO] Plugin Action: add
[2019-09-29T06:38:50.374Z] [INFO] Plugin Id: https://github.com/OutSystems/csZBar.git#v1.3.3-OS8-MABS5
[2019-09-29T06:38:50.374Z] [INFO] Plugin Action: add
[2019-09-29T06:38:54.296Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-contacts#3.0.1-OS1
[2019-09-29T06:38:54.297Z] [INFO] Plugin Action: add
[2019-09-29T06:39:19.650Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-inappbrowser.git#1.7.0-os
[2019-09-29T06:39:19.650Z] [INFO] Plugin Action: add
[2019-09-29T06:39:22.977Z] [INFO] Plugin Id: https://github.com/agmv/cordova-secure-device.git#1.0.4
[2019-09-29T06:39:22.977Z] [INFO] Plugin Action: add
[2019-09-29T06:39:25.569Z] [INFO] Plugin Id: https://github.com/TruewindIT/cordova-plugin-firebase#1.6
[2019-09-29T06:39:25.569Z] [INFO] Plugin Action: add
[2019-09-29T06:40:29.055Z] [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/TruewindIT/cordova-plugin-firebase#1.6"
Fetching plugin "https://github.com/TruewindIT/cordova-plugin-firebase" via git clone
Running command: git clone https://github.com/TruewindIT/cordova-plugin-firebase /var/folders/2s/jp6lkjwd43z5r7j2v7mvgg1w0000gq/T/git/1569739166745
Command finished with error code 0: git clone,https://github.com/TruewindIT/cordova-plugin-firebase,/var/folders/2s/jp6lkjwd43z5r7j2v7mvgg1w0000gq/T/git/1569739166745
Running command: git checkout 1.6
Command finished with error code 0: git checkout,1.6
Repository "https://github.com/TruewindIT/cordova-plugin-firebase" checked out to git ref "1.6".
/tmp/build/source/plugins/cordova-plugin-firebase"...
Plugin "cordova-plugin-firebase" fetched.
Calling plugman.install on plugin "/Users/mabs01/NativeBuilder/builds/6d83efbf-32e7-4cee-89a5-bbef78ccb8bc/source/plugins/cordova-plugin-firebase" for platform "ios
Installing "cordova-plugin-firebase" for ios
Running command: /Users/mabs01/NativeBuilder/builds/6d83efbf-32e7-4cee-89a5-bbef78ccb8bc/source/platforms/ios/cordova/version
Command finished with error code 0: /Users/mabs01/NativeBuilder/builds/6d83efbf-32e7-4cee-89a5-bbef78ccb8bc/source/platforms/ios/cordova/version
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-firebase on ios platform only.
Executing script found in plugin cordova-plugin-firebase for hook "before_plugin_install": plugins/cordova-plugin-firebase/scripts/configurations/installDependencies.js
7.1.0
Resolving module name for child_process => child_process
Resolving module name for q => q
Executing script found in plugin cordova-plugin-firebase for hook "before_plugin_install": plugins/cordova-plugin-firebase/scripts/configurations/unzipAndCopyConfigurations.js
7.1.0
7.1.0
Resolving module name for q => q
7.1.0
Resolving module name for elementtree => elementtree
No file found
Failed to install 'cordova-plugin-firebase': TypeError: Cannot read property 'reject' of undefined
    at Object.handleError (/Users/mabs01/NativeBuilder/builds/6d83efbf-32e7-4cee-89a5-bbef78ccb8bc/source/plugins/cordova-plugin-firebase/scripts/configurations/utilities.js:33:9)
    at module.exports (/Users/mabs01/NativeBuilder/builds/6d83efbf-32e7-4cee-89a5-bbef78ccb8bc/source/plugins/cordova-plugin-firebase/scripts/configurations/unzipAndCopyConfigurations.js:59:11)
    at runScriptViaModuleLoader (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:18)
    at runScript (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:164:16)
    at /Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20
    at _fulfilled (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/Users/mabs01/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:108:17)
Error: Cannot read property 'reject' of undefined

[2019-09-29T06:40:29.055Z] [ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-firebase': TypeError: Cannot read property 'reject.
[2019-09-29T06:40:29.055Z] [INFO] Zipping application source...
[2019-09-29T06:40:41.944Z] [INFO] Application was not successfully generated!
[2019-09-29T06:40:41.945Z] [INFO] Execution time: 178592ms




I have added he plist and json file in resource, it works fine in other environment but fails in another environment.

Thanks in advance.,

Regards,

Arun

Hi Arun,

- make sure next time to post the question in a readable format or better to attach log as an attachment.

- better to post the same in the respective forge component support sections


Perhaps coming to the question, you might be doing some mistake with the zip you are adding as a resource.

Ensure that the following properties are correct:

  • Name: google-services.zip
  • Deploy action: deploy to target directory
  • Target directory: the concatenation of firebase. and your app identifier.

Example of target directory:

  • App identifier: com.sample.dev.FirebaseMobileSample
  • Target directory: firebase.com.sample.dev.FirebaseMobileSample



Refer Configuration Guide for Firebase:

https://www.outsystems.com/forums/discussion/43685/configuration-guide/

Hope it helps,

Assif