Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module '../../node_modules/xcode' #26

Closed
epetre opened this issue Apr 29, 2017 · 9 comments
Closed

Error: Cannot find module '../../node_modules/xcode' #26

epetre opened this issue Apr 29, 2017 · 9 comments

Comments

@epetre
Copy link

epetre commented Apr 29, 2017

After fresh install of version ~ 0.9.4 a build triggers this error...
It seems to be related to this other project, but I'm not sure yet what to do with it.

It only happens when building.

@epetre
Copy link
Author

epetre commented Apr 29, 2017

@epetre epetre closed this as completed Apr 29, 2017
@epetre epetre reopened this Apr 29, 2017
@epetre
Copy link
Author

epetre commented Apr 29, 2017

changing

     xcode = context.requireCordovaModule('cordova-lib/node_modules/xcode'),
     plist = context.requireCordovaModule('cordova-lib/node_modules/plist');

to

     xcode = context.requireCordovaModule('xcode'),
     plist = context.requireCordovaModule('plist');

Fixes the issue for me, but then I get:

Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.m:2:9: fatal error: module 'FirebaseAnalytics' not found
@import FirebaseAnalytics;

This was mentioned here but then closed.

@xXcoronaXx
Copy link

Same build error IOS:

Error: Cannot find module '../../node_modules/xcode'

@MarinoRaul
Copy link

Can you resolve this issue???

Same build error IOS:

Error: Cannot find module '../../node_modules/xcode'

@shirkan
Copy link

shirkan commented Jun 22, 2017

Same problem here.

@Alb93
Copy link

Alb93 commented Jun 23, 2017

Same here. @chemerisuk please fix. My try was to change
xcode = context.requireCordovaModule('cordova-lib/node_modules/xcode'), plist = context.requireCordovaModule('cordova-lib/node_modules/plist');
to
xcode = require('xcode'), plist = require('plist');
but receiving som build compilation errors.

@chemerisuk
Copy link
Owner

Try version 0.10 from npm. Make sure you've read README to setup plugin correctly (there were some changes).

@merbin2012
Copy link

Nothing specified there.

@ManoloCap
Copy link

Same problem here in 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants