Skip to content

Commit 7ffe479

Browse files
feat(posts): add "How to set Cocoapods to a version"
Post: 2025-08-19-set-cocoapods-version.md
1 parent f5e2c28 commit 7ffe479

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: post
3+
title: How to set Cocoapods to a version
4+
date: 2025-08-19 15:49:57
5+
excerpt: How to install and uninstall Cocoapods so you set Cocoapods to a specific version on Mac.
6+
categories: cocoapods
7+
---
8+
9+
This post goes over how to set Cocoapods to a specific version:
10+
11+
- [List](#list)
12+
- [Install](#install)
13+
- [Uninstall](#uninstall)
14+
15+
## List
16+
17+
Display Cocoapods version:
18+
19+
```sh
20+
pod --version
21+
```
22+
23+
Check if you have multiple versions of Cocoapods installed:
24+
25+
```sh
26+
gem list cocoapods
27+
```
28+
29+
If you see something like:
30+
31+
```
32+
*** LOCAL GEMS ***
33+
34+
cocoapods (1.16.2, 1.14.3, 1.11.3)
35+
```
36+
37+
Then you might want to [delete](#uninstall) the other versions.
38+
39+
## Install
40+
41+
Install Cocoapods version `1.14.3`:
42+
43+
```sh
44+
sudo gem install cocoapods -v 1.14.3
45+
```
46+
47+
## Uninstall
48+
49+
Uninstall Cocoapods version:
50+
51+
```sh
52+
sudo gem uninstall cocoapods
53+
```

0 commit comments

Comments
 (0)