# Specify cocoapods version

**URL:** <https://discuss.circleci.com/t/specify-cocoapods-version/2014>\
**Category:** Build Environment\
**Created:** [February 9, 2016, 10:21pm UTC](https://discuss.circleci.com/t/specify-cocoapods-version/2014 "2016-02-09T22:21:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyfoster](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/garyfoster/32/1495_2.png) [@garyfoster](https://discuss.circleci.com/u/garyfoster)\
**Post date:** [February 9, 2016, 10:21pm UTC](https://discuss.circleci.com/t/specify-cocoapods-version/2014/1 "2016-02-09T22:21:09Z")

</div>

I was previously shown by circle support how to specify the version of cocoapods for my build, using the following syntax in dependencies → pre of circle.yml:

```
- sudo gem uninstall cocoapods -v 0.39.0
- pod --version # 0.38.2

```

It was working fine until recently. Now the builds time out with the following output:

> sudo gem uninstall cocoapods -v 0.39.0  
> You have requested to uninstall the gem:  
> cocoapods-0.39.0

> cocoapods-check-0.1.0 depends on cocoapods (~\> 0.39.0)  
> If you remove this gem, these dependencies will not be met.

> Continue with Uninstall? [yN] command sudo gem uninstall cocoapods -v 0.39.0 took more than 10 minutes since last output

I started to try to hack through this but I was wondering if there is a better way to specify the cocoapods version installed?

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [February 12, 2016, 5:52pm UTC](https://discuss.circleci.com/t/specify-cocoapods-version/2014/2 "2016-02-12T17:52:18Z")

</div>

Sorry about that! You’ll need to add `--force` flag to the `gem uninstall cocoapods` command.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/specify-cocoapods-version/2014/3 "2018-06-18T11:37:59Z")

</div>


