131
Views
1
Comments
[Embedded Scanner Plugin] Error: Cannot find module 'xcode'
Question
Forge component by Miguel 'Kelter' Antunes
1
Published on 18 Jan 2019

I'm getting the following when trying to use this plugin and build the iOS app in OS11. Any idea?


Calling plugman.fetch on plugin "https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git"

Fetching plugin "https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git" via git clone

Running command: git clone --depth=1 https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git /var/folders/vm/t_bkg0md7bl592_7jh9jb1h40000gq/T/git/1560613717519

Command finished with error code 0: git clone,--depth=1,https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git,/var/folders/vm/t_bkg0md7bl592_7jh9jb1h40000gq/T/git/1560613717519

Repository "https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git" checked out to git ref "master".

/tmp/build/source/plugins/cordova-plugin-qrscanner"...

Plugin "cordova-plugin-qrscanner" fetched.

Calling plugman.install on plugin "/Users/mabs01/NativeBuilder/builds/e76bb967-af6d-4044-90e0-95192fe09d60/source/plugins/cordova-plugin-qrscanner" for platform "ios

Installing "cordova-plugin-qrscanner" for ios

Running command: /Users/mabs01/NativeBuilder/builds/e76bb967-af6d-4044-90e0-95192fe09d60/source/platforms/ios/cordova/version

Command finished with error code 0: /Users/mabs01/NativeBuilder/builds/e76bb967-af6d-4044-90e0-95192fe09d60/source/platforms/ios/cordova/version

Dependencies detected, iterating through them...

Requesting plugin "cordova-plugin-add-swift-support".

Plugin dependency "cordova-plugin-add-swift-support" not fetched, retrieving then installing.

Fetching plugin "cordova-plugin-add-swift-support" via npm

Copying plugin "/Users/mabs01/.cordova/lib/npm_cache/cordova-plugin-add-swift-support/2.0.2/package" => "/Users/mabs01/NativeBuilder/builds/e76bb967-af6d-4044-90e0-95192fe09d60/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-qrscanner on ios platform only.

No scripts found for hook "before_plugin_install".

Install start for "cordova-plugin-qrscanner" on ios.

Beginning processing of action stack for ios project...

Action stack processing complete.

Install complete for cordova-plugin-qrscanner on ios.

Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-qrscanner on ios platform only.

No scripts found for hook "after_plugin_install".

Adding cordova-plugin-qrscanner to package.json

Saved plugin info for "cordova-plugin-qrscanner" 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'

Rank: #37389

New one...


[2019-12-06T03:07:24.462Z] [INFO] Start processing job request...

[2019-12-06T03:07:24.468Z] [INFO] Start generating application...

[2019-12-06T03:07:24.468Z] [INFO] Template version: 5.3.0

[2019-12-06T03:07:24.468Z] [INFO] Build features: cordovaNoFetch - true

[2019-12-06T03:07:24.469Z] [INFO] Build features: buildTimeout - 20

[2019-12-06T03:07:24.469Z] [INFO] Build features: optInBeta - true

[2019-12-06T03:07:24.469Z] [INFO] Creating a temporary folder for the application...

[2019-12-06T03:07:24.473Z] [INFO] Creating the required directory structure for your cordova application...

[2019-12-06T03:07:36.165Z] [INFO] Getting application resources...

[2019-12-06T03:07:36.237Z] [INFO] Processing application resources...

[2019-12-06T03:07:36.371Z] [INFO] Generating application assets...

[2019-12-06T03:07:39.890Z] [INFO] Applying configurations in the config.xml file...

[2019-12-06T03:07:39.899Z] [INFO] Applying advanced configurations in the config.xml file...

[2019-12-06T03:07:39.899Z] [INFO] Applying custom application icons...

[2019-12-06T03:07:39.900Z] [INFO] Applying custom application splashscreens...

[2019-12-06T03:07:39.900Z] [INFO] Applying application preferences...

[2019-12-06T03:07:39.900Z] [INFO] Applying application accessList...

[2019-12-06T03:07:39.900Z] [INFO] Adding target platform...

[2019-12-06T03:09:36.963Z] [INFO] Applying plugins in the config.xml file...

[2019-12-06T03:09:36.963Z] [INFO] Plugin Id: https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git

[2019-12-06T03:09:36.964Z] [INFO] Plugin Action: add

[2019-12-06T03:09:42.209Z] [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/kelter-antunes/cordova-plugin-qrscanner-extended.git"

Fetching plugin "https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git" via git clone

Running command: git clone --depth=1 https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git /var/folders/7v/lwgj9sy95ds9fbs9fhkw13400000gr/T/git/1575601778794

Command finished with error code 0: git clone,--depth=1,https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git,/var/folders/7v/lwgj9sy95ds9fbs9fhkw13400000gr/T/git/1575601778794

Repository "https://github.com/kelter-antunes/cordova-plugin-qrscanner-extended.git" checked out to git ref "master".

/tmp/build/source/plugins/cordova-plugin-qrscanner"...

Plugin "cordova-plugin-qrscanner" fetched.

Calling plugman.install on plugin "/Users/mabs02/NativeBuilder/builds/81b4090d-ea19-4a24-bf55-76e6b0229e9d/source/plugins/cordova-plugin-qrscanner" for platform "ios

Installing "cordova-plugin-qrscanner" for ios

Running command: /Users/mabs02/NativeBuilder/builds/81b4090d-ea19-4a24-bf55-76e6b0229e9d/source/platforms/ios/cordova/version

Command finished with error code 0: /Users/mabs02/NativeBuilder/builds/81b4090d-ea19-4a24-bf55-76e6b0229e9d/source/platforms/ios/cordova/version

Dependencies detected, iterating through them...

Requesting plugin "cordova-plugin-add-swift-support".

Plugin dependency "cordova-plugin-add-swift-support" not fetched, retrieving then installing.

Fetching plugin "cordova-plugin-add-swift-support" via npm

Copying plugin "/Users/mabs02/.cordova/lib/npm_cache/cordova-plugin-add-swift-support/2.0.2/package" => "/Users/mabs02/NativeBuilder/builds/81b4090d-ea19-4a24-bf55-76e6b0229e9d/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-qrscanner on ios platform only.

No scripts found for hook "before_plugin_install".

Install start for "cordova-plugin-qrscanner" on ios.

Beginning processing of action stack for ios project...

Action stack processing complete.

Install complete for cordova-plugin-qrscanner on ios.

Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-qrscanner on ios platform only.

No scripts found for hook "after_plugin_install".

Adding cordova-plugin-qrscanner to package.json

Saved plugin info for "cordova-plugin-qrscanner" 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-12-06T03:09:42.210Z] [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-12-06T03:09:42.210Z] [INFO] Zipping application source...

[2019-12-06T03:09:53.517Z] [INFO] Application was not successfully generated!

[2019-12-06T03:09:53.522Z] [INFO] Execution time: 149095ms