xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

You don't have write permissions for ... #459

Closed alikenski closed 1 year ago

alikenski commented 2 years ago

After running the command gem install xcode-install I got error

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

aymkin commented 2 years ago

image

Logicoeur commented 1 year ago

You need to run it using SUDO if you want to install to the default gem repo under /Library. Your other option is to configure gem to use a directory you do have write access to install its gems.

rogerluan commented 1 year ago

I second what @Logicoeur said. The best and recommended way of installing gems is to use bundler and add the gem to your Gemfile.

Hope this helps 🙏

szymon-afs commented 1 year ago

probably some docs would be helpful for lanuch and forget