# Cocoapods is always failing to find compatible version

**URL:** <https://discuss.bitrise.io/t/cocoapods-is-always-failing-to-find-compatible-version/10840>\
**Category:** Builds\
**Created:** [November 5, 2019, 10:31pm UTC](https://discuss.bitrise.io/t/cocoapods-is-always-failing-to-find-compatible-version/10840 "2019-11-05T22:31:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylebrowning](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/kylebrowning/32/2589_2.png) [@kylebrowning](https://discuss.bitrise.io/u/kylebrowning)\
**Post date:** [November 5, 2019, 10:31pm UTC](https://discuss.bitrise.io/t/cocoapods-is-always-failing-to-find-compatible-version/10840/1 "2019-11-05T22:31:26Z")

</div>

## Description of the issue

Im running a simple Linter, and xcodebuild test workflow.

In order to do this quickly, Id prefer things pull from cache. (Which is seems they are)

However every single build complains that  
`CocoaPods could not find compatible versions for pod ....`

Ive removed said pod, and transitioned it to Carthage, but on my subsequent build, another Pod complaint is shown  
`CocoaPods could not find compatible versions for pod `

In this particular case the full log is here.

```auto
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "JGProgressHUD":
  In snapshot (Podfile.lock):
    JGProgressHUD (= 2.1, ~> 2.0)
  In Podfile:
    JGProgressHUD (~> 2.0)

```

So naturally, it assumes its out of date, and runs

```auto
Command failed, error: exit status 31, retrying without --no-repo-update ...
$ bundle "_2.0.2_" "exec" "pod" "repo" "update"

```

This takes a long time when it isn’t necessary.

## Environment:

**Where did the issue happen?**

Xcode 11.1.x, on macOS 10.14.6 (Mojave)

–osx-xcode-11.1.x, --elite1

**Which build Step causes the issue and which version of the step?**

pods install

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : Every Time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : Its always been the case

### Local reproduction

Nope

### Local reproduction: Linux / Android (docker based) stack builds

No

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![tomhall](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tomhall/32/2504_2.png) [@tomhall](https://discuss.bitrise.io/u/tomhall)\
**Post date:** [November 7, 2019, 11:06am UTC](https://discuss.bitrise.io/t/cocoapods-is-always-failing-to-find-compatible-version/10840/2 "2019-11-07T11:06:48Z")

</div>

In CocoaPods 1.8+, the default spec repo changed to the CDN instead of Git. This has been problematic for a bunch of devs.

You can configure CocoaPods to go back to using the Git spec repo by adding `source 'https://github.com/CocoaPods/Specs.git'` to the top of your `Podfile` , which may help.

You might find you still need to run a `pod repo update` within your Bitrise build, depending on how new your dependencies are – Bitrise updates the spec repo once a week (correct me if I’m wrong). At the moment we’re seeing that add around 90 seconds to every build. It’s not ideal.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [December 7, 2019, 11:06am UTC](https://discuss.bitrise.io/t/cocoapods-is-always-failing-to-find-compatible-version/10840/3 "2019-12-07T11:06:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
