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

Found cordova plugin add workaround / bugfix #215

Closed
hirbod opened this issue Sep 26, 2014 · 7 comments
Closed

Found cordova plugin add workaround / bugfix #215

hirbod opened this issue Sep 26, 2014 · 7 comments

Comments

@hirbod
Copy link
Contributor

hirbod commented Sep 26, 2014

Hey everybody,
I'm sure the most of you probably know the annoying cordova bug after adding / deleting a plugin. You get something like

ERROR: Plugin 'GoogleMaps' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-09-26 22:10:26.461 Nachbarschaft[1171:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [

Masashis workaround was to start a new project and recopy everything. Thats quite difficult. Another fix is to type "cordova platform rm ios" (bug seems only to be on iOS) and readd the platform with "cordova platform add ios"

But there is a much better way without the hastle.
Just open your project in Xcode after you've installed the plugin.

On the left side, Click on folder "classes" to open -> Open Plugins -> Right click on Plugins -> Select sort by type
Now mark all the files with .m (NOT .h)

And on the right side, toggle the checkbox active (Target Membership). Et voila, your plugins will work again. In my Case, all new installed Plugins (google classes, circle.m, maps.m....) we're unchecked. (this is caused trough a Cordova bug. With my workaround, it will take some seconds to get everything work again!

bildschirmfoto 2014-09-26 um 22 20 25

@wf9a5m75
This is something for your docs ;)
Saves so much time!

@wf9a5m75
Copy link
Member

@hirbod , Very awesome!

Could you report to Apache project?
https://issues.apache.org/jira/browse/CB-7542

@hirbod
Copy link
Contributor Author

hirbod commented Sep 27, 2014

It seems to be reported already but I could post there with a link. My workaround works for all plugin problems. Seems after reinstalling a plugin sometimes Xcode don't get the target memberships anymore.

@wf9a5m75
Copy link
Member

Yes, sometimes happens.
I think this issue occurs since Cordova v3.5.

@heks
Copy link

heks commented Oct 16, 2014

thanks alot

@wf9a5m75
Copy link
Member

@hirbod I close this issue list at once, but I linked here from How to update the plugin? page.
I appreciate for your help 💯

@hirbod
Copy link
Contributor Author

hirbod commented Oct 22, 2014

You're welcome!

@hirbod
Copy link
Contributor Author

hirbod commented Mar 4, 2015

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

No branches or pull requests

3 participants