question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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: https://github.com/sarriaroman/FabricPlugin/issues/141#issuecomment-426960537

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
jorgehclinharescommented, Nov 10, 2019

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

1reaction
jmpradocommented, 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]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't update to the latest version of cordova-ios - Stack Overflow
Can't update to the latest version of cordova-ios · I would try this: rm -Rf platforms/ node_modules/ && npm install && cordova platform...
Read more >
Cordova iOS 5.0.0 Released!
We are happy to announce that we have just released Cordova iOS 5.0.0 ! This is one of Cordova's supported platforms for building...
Read more >
Cordova SDK Troubleshooting - Visual Studio App Center
One possible cause of this error is when running cordova plugin add cordova-plugin-appcenter-<module> without CocoaPods installed. In this case, ...
Read more >
Failed to fetch platform cordova\-android@8.0.0
I didn't use the latest Ionic CLI and Cordova CLI. After I updated those then no issues and I was able to build...
Read more >
What's new in Cordova 9.0, compared to Cordova 8.x - Enappd
Cordova followed it and changed the compiled Android project structure in the new Cordova version. But if you try to build an Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found