blakgeek / cordova-plugin-cocoapods-support

A Cordova/PhoneGap plugin to add support for CocoaPods dependencies.
MIT License
72 stars 72 forks source link

Build failed. Xcode module not found. #30

Closed ilyakar closed 6 years ago

ilyakar commented 7 years ago

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

Cordova v6.5.0

blakgeek commented 7 years ago

Can you run with --verbose and post a gist of the output?

thedmeyer commented 7 years ago

I got the following:

Checking config.xml for pods.

No new pods detects

Executing script found in plugin cordova-plugin-firebase-hooks for hook "after_prepare": plugins/cordova-plugin-firebase-hooks/hooks/ios/copy-google-services.js

Resolving module name for cordova-lib/node_modules/xcode => ../../node_modules/xcode

Error: Cannot find module '../../node_modules/xcode'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:77:12)
    at module.exports (/Users/thedmeyer/GitHub/Flatiron/ionic_tester/plugins/cordova-plugin-firebase-hooks/hooks/ios/copy-google-services.js:6:23)
    at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:187:18)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:165:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:133:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)

EDIT: Solution available here. It's caused by an issue in cordova-plugin-firebase-hooks.