ios – Having a Issue with cocoapods installation on Mac

0
52

[ad_1]

I am new programming, after cloning a repository from GitHub on source tree. Having an issue with installing cocoapods, not get solution yet. Please explain solution steps. Thank you.


macOS Monterey version 12.6.1
xcode version 14.1

=>sudo gem install cocoapods
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c

=>sudo gem update —system
Installing RubyGems 3.3.25
ERROR: While executing gem … (Errno::EPERM)
Operation not permitted @ rb_sysopen – /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/gem

=>sudo gem install cocoapods
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.

=>/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

=>brew –version
Homebrew 3.6.11
Homebrew/homebrew-core (git revision dd4e72b5ee8; last commit 2022-11-17)

=>sudo gem install cocoapods
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.


[ad_2]