Cordova plugin preventing app generation IOS

Hi guy,

Error occurred when trying to regenerate app after adding a cordova plugin. 

Log as follows, any ideas? 


[2019-05-06T13:50:22.578Z] [INFO] Start processing job request...
[2019-05-06T13:50:22.583Z] [INFO] Start generating application...
[2019-05-06T13:50:22.583Z] [INFO] Template version: 4.2.3
[2019-05-06T13:50:22.584Z] [INFO] Build features: cordovaNoFetch - true
[2019-05-06T13:50:22.584Z] [INFO] Build features: buildTimeout - 20
[2019-05-06T13:50:22.584Z] [INFO] Creating a temporary folder for the application...
[2019-05-06T13:50:22.585Z] [INFO] Creating the required directory structure for your cordova application...
[2019-05-06T13:50:28.270Z] [INFO] Getting application resources...
[2019-05-06T13:50:28.276Z] [INFO] Processing application resources...
[2019-05-06T13:50:28.421Z] [INFO] Generating application assets...
[2019-05-06T13:50:30.789Z] [INFO] Applying configurations in the config.xml file...
[2019-05-06T13:50:30.795Z] [INFO] Applying advanced configurations in the config.xml file...
[2019-05-06T13:50:30.795Z] [INFO] Applying custom application icons...
[2019-05-06T13:50:30.795Z] [INFO] Applying custom application splashscreens...
[2019-05-06T13:50:30.795Z] [INFO] Applying application preferences...
[2019-05-06T13:50:30.795Z] [INFO] Applying application accessList...
[2019-05-06T13:50:30.796Z] [INFO] Adding target platform...
[2019-05-06T13:51:13.914Z] [INFO] Applying plugins in the config.xml file...
[2019-05-06T13:51:13.914Z] [INFO] Plugin Id: https://github.com/emcniece/cordova-plugin-rssi
[2019-05-06T13:51:13.915Z] [INFO] Plugin Action: add
[2019-05-06T13:51:16.633Z] [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/emcniece/cordova-plugin-rssi"
Fetching plugin "https://github.com/emcniece/cordova-plugin-rssi" via git clone
Running command: git clone --depth=1 https://github.com/emcniece/cordova-plugin-rssi /var/folders/vx/5cv1t7zj54bcjgcvmlh7lpfh0000gt/T/git/1557150674930
Command finished with error code 0: git clone,--depth=1,https://github.com/emcniece/cordova-plugin-rssi,/var/folders/vx/5cv1t7zj54bcjgcvmlh7lpfh0000gt/T/git/1557150674930
Repository "https://github.com/emcniece/cordova-plugin-rssi" checked out to git ref "master".
/tmp/build/source/plugins/cordova-plugin-rssi"...
Plugin "cordova-plugin-rssi" fetched.
Calling plugman.install on plugin "/Users/mabs04/NativeBuilder/builds/c798428b-adb9-48d4-a95b-ceebedf23b90/source/plugins/cordova-plugin-rssi" for platform "ios
Installing "cordova-plugin-rssi" for ios
Running command: /Users/mabs04/NativeBuilder/builds/c798428b-adb9-48d4-a95b-ceebedf23b90/source/platforms/ios/cordova/version
Command finished with error code 0: /Users/mabs04/NativeBuilder/builds/c798428b-adb9-48d4-a95b-ceebedf23b90/source/platforms/ios/cordova/version
Dependencies detected, iterating through them...
Requesting plugin "cordova-plugin-add-swift-support@2.0.1".
Plugin dependency "cordova-plugin-add-swift-support" not fetched, retrieving then installing.
Fetching plugin "cordova-plugin-add-swift-support@2.0.1" via npm
Copying plugin "/Users/mabs04/.cordova/lib/npm_cache/cordova-plugin-add-swift-support/2.0.1/package" => "/Users/mabs04/NativeBuilder/builds/c798428b-adb9-48d4-a95b-ceebedf23b90/source/plugins/cordova-plugin-add-swift-support"
Installing "cordova-plugin-add-swift-support" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-add-swift-support on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-add-swift-support" on ios.
PlatformApi successfully found for platform ios
Beginning processing of action stack for ios project...
Action stack processing complete.
Install complete for cordova-plugin-add-swift-support on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-add-swift-support on ios platform only.
No scripts found for hook "after_plugin_install".
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-rssi on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-rssi" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
Install complete for cordova-plugin-rssi on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-rssi on ios platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-rssi to package.json
Saved plugin info for "cordova-plugin-rssi" to config.xml
Executing script found in plugin cordova-plugin-add-swift-support for hook "after_plugin_add": plugins/cordova-plugin-add-swift-support/src/add-swift-support.js
Error: Cannot find module 'xcode'

[2019-05-06T13:51:16.633Z] [ERROR] Build failed with the following error: An unexpected error has occurred while installing the Cordova plugins. Please try again. If the problem persists, contact OutSystems Support.
[2019-05-06T13:51:16.633Z] [INFO] Zipping application source...
[2019-05-06T13:51:22.388Z] [INFO] Application was not successfully generated!

Does the build work for Android? 

What version of the OutSystems platform and Service Studio are you using?


G. Andrew Duthie wrote:

Does the build work for Android? 

What version of the OutSystems platform and Service Studio are you using?


Didn't try in Android. 

Platform Version 10.0.1005.0

Service Studio 10.0.1009.0


Seems like the cordova plugin was looking for "xcode" : "Error: Cannot find module 'xcode' "

Not sure how outsystems ios build systems works... 

Same issue. Any resolution?

Executing script found in plugin cordova-plugin-add-swift-support for hook "after_plugin_add": plugins/cordova-plugin-add-swift-support/src/add-swift-support.js
Error: Cannot find module 'xcode'

G. Andrew Duthie wrote:

Does the build work for Android? 

What version of the OutSystems platform and Service Studio are you using?


Neither build works for me. I'm using 11.0.511.0.