Failed to install 'cordova-plugin-youtube-video-player': undefined for iOS

I am not able to install ‘cordova-plugin-youtube-video-player’ plugin for iOS after updating Xcode to 10.2.1. However, it is working fine with Android.

Error log:

System config:

I am unable to figure out what’s the exact issue. Looking for a help. Thanks in advance!

Hi, do you resolve the probleme ??

Possibly you can remove your platform completelyand add again… That would helps sometimes.

Did you solve it? I get similar error while adding the plugin to ios

Installing “cordova-plugin-youtube-video-player” for ios
Failed to install ‘cordova-plugin-youtube-video-player’: undefined

Error: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/rbconfig.rb:215: warning: Insecure world writable dir /Users/ananthaarni/codebase/sharekeepr/node_modules/.bin in PATH, m
ode 040777
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!’: [!] You cannot run CocoaPods as root. (CLAide::Help)

I got the same issue. I install this “gem install -n /usr/local/bin cocoapods”, then it worked perfectly without any error