Error: Cannot find module 'xcode', but I'm building for Andorid


#1

Hi guys,
I’m trying to build an app for Android with the command:
ionic cordova build --release android

but I get the error:

.....
....
> cordova build android --release
config file *-Info.plist requested for changes not found at C:\ProveElectron\bitsharing-app\platforms\android\*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at C:\ProveElectron\bitsharing-app\platforms\android\*-Info.plist, ignoring
Cannot find module 'xcode'
config file *-Info.plist requested for changes not found at C:\ProveElectron\bitsharing-app\platforms\android\*-Info.plist, ignoring

This is the output of the ionic info command:

ionic info
Ionic:
ionic (Ionic CLI) : 4.12.0
Ionic Framework : @ionic/angular 4.2.0
@angular-devkit/build-angular : 0.13.8
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.8
@ionic/angular-toolkit : 1.4.1
Cordova:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 13 other plugins)
System:
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Why do I have an error on Xcode?
I’ve also removed the iOS platform.

Thank you very much

cld


#2

The problem was the plugin cordova-plugin-add-swift-support that had a dipendence to Xcode.
I’ve removed the plugin in this way:
cordova plugin rm cordova-plugin-add-swift-support --save

I think I’ll have to add it again when I will build for iOS.

cld