I have an application that uses some ios capabilities (Keychain sharing, Push notifications, etc)
Every time that it remove the platforms and re-run cordova platform add ios, I have to manually open the XCode and open the settings .xcodeproj and go to the Capabilities tab and enable them manually.
Is there any way to auto enable them automatically every time that I re-run cordova platform add ios?
Thanks
You may not need to do this at all.
Features you mentioned (Keychain sharing, Push notifications) will work without manually enabling the associated capabilities in XCode if the plugins you use add the required entitlements on install.
And most well-developed plugins do just that. For example:
aps-environment
key to Entitlements-*.plist
automatically
Simply make sure you're using a recent-enough version of the plugin in question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With