Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova 8.1.1 android build: cannot find module xcode

Tags:

cordova

I have upgraded cordova on my windows machine from 8.0.0 to 8.1.1 and now I get the following error when trying to build the android version:

cordova build android
Cannot find module 'xcode'

After downgrade to 8.0.0, it works again.

What do I have to do to get around the issue?

like image 204
Alexander Avatar asked Oct 01 '18 08:10

Alexander


2 Answers

It's a bug on the release, it's already fixed, but not released yet.

So for now I think best option is to downgrade to 8.0.0 until the new version is released. I think you can also install xcode package in your project and might work npm i xcode

like image 113
jcesarmobile Avatar answered Jan 04 '23 10:01

jcesarmobile


This is a really frusturating issue:

I did downgrade : npm install -g [email protected] and for IOS environment you will see same error too. Do this: [email protected]

fyi. @Alexander

like image 23
Fuat Avatar answered Jan 04 '23 12:01

Fuat