CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.

Home Page:http://rubygems.org/gems/xcodeproj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You don't have write permissions for the /usr/bin directory.

zhangsuya opened this issue · comments

commented

sudo gem install xcodeproj ,then You don't have write permissions for the /usr/bin directory.

Also report an error

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.

Snip20230926_4

export GEM_HOME=$HOME/.gem
export PATH=$PATH:$GEM_HOME/bin

After executing the above command on the command line
reenforce
sudo gem install xcodeproj
Successful installation