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

Fails to install for latest cordova-ios version (5.0.1 and maybe 5.0.0) #155

Open
814k31 opened this issue May 10, 2019 · 6 comments
Open

Comments

@814k31
Copy link

814k31 commented May 10, 2019

Installing with the latest cordova-ios version fails due to this error with cordova-fabric-plugin

Error Message: Failed to install 'cordova-fabric-plugin': CordovaError: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.

I believe Context.requireCordovaModule is now removed in cordova lib 9.0.0 which are used:
https://github.com/sarriaroman/FabricPlugin/blob/master/hooks/lib/ios-helper.js#L23
https://github.com/sarriaroman/FabricPlugin/blob/master/hooks/lib/ios-helper.js#L78
https://github.com/sarriaroman/FabricPlugin/blob/master/hooks/lib/utilities.js#L32

Also mentioned:
#141 (comment)

@814k31 814k31 changed the title Failed to install 'cordova-fabric-plugin': CordovaError: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. Fails to install for latest cordova-ios version (5.0.1 and maybe 5.0.0) May 10, 2019
@814k31
Copy link
Author

814k31 commented May 10, 2019

Seems to be fixed in the active pull request #154

@814k31
Copy link
Author

814k31 commented May 10, 2019

And also in #153 ...

@murilobeltrame
Copy link

Same error here :/

@jmprado
Copy link

jmprado commented Sep 13, 2019

Use this fork to add the plugin to your cordova app:

ionic cordova plugin add https://github.com/jmprado/FabricPlugin/ --variable FABRIC_API_KEY=[your fabric key] --variable FABRIC_API_SECRET=[your fabric secret]

@jmprado
Copy link

jmprado commented Sep 13, 2019

The problem is that cordova-cli 9 changed the way to use xcode:

  1. Install node xcode module: npm install xcode
  2. Install the plugin from the fork above

Works on ionic cordova as well (tested).

@jorgehclinhares
Copy link

I have this problem now. @jmprado your fork solved it for me. Thanks!

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

4 participants