Skip to content

Commit c6c1fa0

Browse files
committed
fix(macos): ruby version mention
1 parent 05206ae commit c6c1fa0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

content/setup/macos.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,22 @@ In newer versions of XCode, 'Preferences' may be 'Settings'
163163

164164
### Installing Ruby
165165

166-
Install **ruby 2.7** and link it so it's available in your shell environment:
166+
Install **ruby 3.3+** and link it so it's available in your shell environment:
167167

168168
```cli
169-
brew install ruby@2.7
170-
brew link ruby@2.7
169+
brew install ruby@3.3
170+
brew link ruby@3.3
171171
```
172172

173+
You can now run `brew list ruby` to see which specific version was installed to reference next.
174+
173175
Add the following lines to your shell profile, usually `~/.bash_profile` or `~/.bashrc`, or if you are using `zsh` then `~/.zshrc` config file:
174176

175177
```shell
176-
# Add rubygems to the path
177-
export PATH=/opt/homebrew/lib/ruby/gems/2.7.0/bin:$PATH
178+
# Add ruby and rubygems to the path
179+
export PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.3.4/bin:$PATH
178180
# or
179-
export PATH=/usr/local/lib/ruby/gems/2.7.0/bin:$PATH
181+
export PATH=/usr/local/lib/ruby/bin:/usr/local/lib/ruby/gems/3.3.4/bin:$PATH
180182
```
181183

182184
:::warning Important
@@ -192,8 +194,8 @@ In a new terminal window, install the **<abbr title="A package manager for manag
192194
<!-- gem install ... # requires root privileges on macOS. sudo works. -->
193195

194196
```cli
195-
sudo gem install cocoapods
196-
sudo gem install xcodeproj
197+
gem install cocoapods
198+
gem install xcodeproj
197199
```
198200

199201
Depending on installation methods, the location of ruby gems may vary. Make sure you have the right folder in your `$PATH` by running `which pod`.

0 commit comments

Comments
 (0)