File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -163,20 +163,22 @@ In newer versions of XCode, 'Preferences' may be 'Settings'
163
163
164
164
### Installing Ruby
165
165
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:
167
167
168
168
``` 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
171
171
```
172
172
173
+ You can now run ` brew list ruby ` to see which specific version was installed to reference next.
174
+
173
175
Add the following lines to your shell profile, usually ` ~/.bash_profile ` or ` ~/.bashrc ` , or if you are using ` zsh ` then ` ~/.zshrc ` config file:
174
176
175
177
``` 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
178
180
# 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
180
182
```
181
183
182
184
:::warning Important
@@ -192,8 +194,8 @@ In a new terminal window, install the **<abbr title="A package manager for manag
192
194
<!-- gem install ... # requires root privileges on macOS. sudo works. -->
193
195
194
196
``` cli
195
- sudo gem install cocoapods
196
- sudo gem install xcodeproj
197
+ gem install cocoapods
198
+ gem install xcodeproj
197
199
```
198
200
199
201
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 ` .
You can’t perform that action at this time.
0 commit comments