Cordova
cordova plugin add cordova-plugin-appcenter-analytics
Installing "cordova-plugin-appcenter-analytics" for android
Installing "cordova-plugin-appcenter-shared" for android
Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-appcenter-analytics" for browser
Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-appcenter-shared" for browser
Installing "cordova-plugin-appcenter-analytics" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-appcenter-shared" for ios
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-appcenter-shared': CordovaError: Uh oh!
"/Users/alex/Projects/hectare-src/app/src-cordova/platforms/ios/****/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.m" already exists!
Tried re-installing after removing after I installed cocopods.
This looks like a duplicate of https://github.com/microsoft/appcenter-sdk-cordova/issues/83
Resolved by deleting my entire src-cordova and starting again 🤷♂️
I just run into this bug too with my ionic project after updating to MacOS Catalina.
I was able to solve the issue following these steps:
$ sudo gem install cocoapods$ ionic repairplatforms and plugin and start the build process with ionic cordova build ios Same frustrating error for me. Ticket is closed...but not solved. So...how can we update our AppCenter plugins?
Why is this closed? It sounds like a pretty major bug to not be able to install the plugin normally.
Why would the solution be to repair anything or reinstall the platform and plugins?
Had to:
1- pod repo update
2- remove the plugin
3- manually delete the folder containing the AppCenterShared.m file that it complains already exists!. platforms/ios/APP_NAME/Plugins/cordova-plugin-appcenter-shared
4- install the plugin again
This issue was closed way too fast with way too little information provided. https://docs.microsoft.com/en-us/appcenter/sdk/troubleshooting/cordova#failed-to-install-plugin---pod-command-failed-with-exit-code-1
Is not really much clearer and is not even mentioning this issue directly.
Same for me. I use CI/CD and it is failing every time it tries to add the platform although it just adds the plugins for the first time. I use the crashes and the analytics plugin.
What worked for me was adding packages [email protected] and cordova-common. The latter is to avoid another potential issue related to modules not found.
I also use CI/CD pipelines and that worked for it as well.
Most helpful comment
Why is this closed? It sounds like a pretty major bug to not be able to install the plugin normally.
Why would the solution be to repair anything or reinstall the platform and plugins?
Had to:
1- pod repo update
2- remove the plugin
3- manually delete the folder containing the AppCenterShared.m file that it complains already exists!.
platforms/ios/APP_NAME/Plugins/cordova-plugin-appcenter-shared4- install the plugin again
This issue was closed way too fast with way too little information provided. https://docs.microsoft.com/en-us/appcenter/sdk/troubleshooting/cordova#failed-to-install-plugin---pod-command-failed-with-exit-code-1
Is not really much clearer and is not even mentioning this issue directly.