google-analytics-plugin icon indicating copy to clipboard operation
google-analytics-plugin copied to clipboard

iOS - Error while installing the plugin

Open jonathangraci opened this issue 2 years ago • 2 comments

When I try to install the plugin in my Cordova app with the following command:

sudo cordova plugin add cordova-plugin-google-analytics --variable GMS_VERSION = 18.0.1

I get the following error:

Failed to install 'cordova-plugin-google-analytics': Error: pod: Command failed with exit code 1 Error output: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/rbconfig.rb:230: warning: Insecure world writable dir / Users / admin / Builds / MyApp in PATH, mode 040777 /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:439:in `help! ': [!] You cannot run CocoaPods as root. (CLAide :: Help)

Can you help me?

Thanks

jonathangraci avatar Aug 02 '22 09:08 jonathangraci

try this: https://stackoverflow.com/questions/65944484/you-cannot-run-cocoapods-as-root-claidehelp-flutter

victorsosa avatar Aug 02 '22 09:08 victorsosa

I followed the instructions but it doesn't work

jonathangraci avatar Aug 02 '22 12:08 jonathangraci