-
Notifications
You must be signed in to change notification settings - Fork 918
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
Comments
@hirbod , Very awesome! Could you report to Apache project? |
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. |
Yes, sometimes happens. |
thanks alot |
@hirbod I close this issue list at once, but I linked here from How to update the plugin? page. |
You're welcome! |
Hey everybody,
I'm sure the most of you probably know the annoying cordova bug after adding / deleting a plugin. You get something like
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!
@wf9a5m75
This is something for your docs ;)
Saves so much time!
The text was updated successfully, but these errors were encountered: