# Downloading cocoapods pods spec gives error

**URL:** <https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134>\
**Category:** Build Environment\
**Tags:** ios, circle-yml\
**Created:** [March 3, 2022, 7:19pm UTC](https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134 "2022-03-03T19:19:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngokul3](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@ngokul3](https://discuss.circleci.com/u/ngokul3)\
**Post date:** [March 3, 2022, 7:19pm UTC](https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134/1 "2022-03-03T19:19:38Z")

</div>

We are running this command , and getting error - unexpected token `newline’  
command - curl [https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh](https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh) | bash -s cf

Is anyone else facing this issue?

 ![image](https://global.discourse-cdn.com/circleci/original/3X/5/a/5a0dbfc269c097758ade8eb6e8347df5b06e2d0f.png)

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [March 3, 2022, 7:26pm UTC](https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134/2 "2022-03-03T19:26:32Z")

</div>

Hi, please see:

> [@Cocoapods Specs Mirror Removal](https://discuss.circleci.com/t/cocoapods-specs-mirror-removal/43129):
>
> We have previously supported a Cocoapods repo at the below address to help speed up the spec repo clone for users who implemented pods in their jobs. This spec repo mirror has been in a [deprecated state for around 1.5 years](https://support.circleci.com/hc/en-us/articles/360045898974-Cocoapods-Spec-Repo-is-Outdated) and not been updated since March 2020. As such the packages it contains are extremely old and outdated. From this week, we will be removing this outdated resource. If your job is calling the script at https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh it …

---

<div class="post-metadata">

**Author:** ![ngokul3](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@ngokul3](https://discuss.circleci.com/u/ngokul3)\
**Post date:** [March 3, 2022, 8:18pm UTC](https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134/3 "2022-03-03T20:18:04Z")

</div>

Hey - Thank you very much for the reply!!

I’m wondering if it is ok to not call that line at all. Do you know if there’s an alternative code snippet for that?

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [March 3, 2022, 9:22pm UTC](https://discuss.circleci.com/t/downloading-cocoapods-pods-spec-gives-error/43134/4 "2022-03-03T21:22:38Z")

</div>

No problem! If you switch to using the Cocoapods CDN then you do not need to pull any spec repos at all, you just need to edit your podfile as described in our docs and you should be good to go: [Testing iOS Applications on macOS - CircleCI](https://circleci.com/docs/2.0/testing-ios/#optimizing-cocoapods)
