Some versions of the Cordova cli prepend the string 'git+' to git URL references in package.json and config.xml. Cordova is unable to properly resolve URLs including the 'git+' string and fails to retrieve the plugin during the build.
Removing the string 'git+' wherever present in config.xml and package.json will resolve the problem.
Build log examples:
Fetching plugin "git+https://github.com/some/cordova-plugin.git" via git clone Failed to restore plugin "some-cordova-plugin" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/some/cordova-plugin.git via git. Either there is a connection problems, or plugin spec is incorrect: Error: git: Command failed with exit code 128 Error output: Cloning into '/var/folders/...'... fatal: Unable to find remote helper for 'git+https'
Failed to restore plugin "cordova-plugin-statusbar" from config.xml.
You might need to try adding it again.
Error: Failed to fetch plugin git+https://github.com/apache/cordova-plugin-statusbar.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module