Ironsource Failed to install CocoaPods

hi im trying to get ironsource working for my app on ios but I keep getting Failed to install CocoaPods. i have try it through the link it gives but no luck. here is the error im getting

Failed to install CocoaPods for the current user.

It will not be possible to install Cocoapods in the generated Xcode project which will result in link errors when building your application.

For more information see:
CocoaPods Guides - Getting Started

‘gem install activesupport -v 4.2.6 --user-install’ failed with code (1):
Building native extensions. This could take a while…

WARNING: You don’t have /Users/killitsgaming/.gem/ruby/2.6.0/bin in your PATH,
gem executables will not run.
ERROR: Error installing activesupport:
ERROR: Failed to build gem native extension.

current directory: /Users/killitsgaming/.gem/ruby/2.6.0/gems/json-1.8.6/ext/json/ext/generator

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20230816-4350-tv94z0.rb extconf.rb
creating Makefile