# CocoaPods fails to install ModelMapper pod

**URL:** <https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946>\
**Category:** Builds\
**Tags:** fastlane\
**Created:** [June 7, 2017, 11:33am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946 "2017-06-07T11:33:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinhatpikto](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vinhatpikto](https://discuss.bitrise.io/u/vinhatpikto)\
**Post date:** [June 7, 2017, 11:33am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/1 "2017-06-07T11:33:00Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

There is error while installing ModelMapper (6.0.0).

```auto
Installing ModelMapper (6.0.0)

[!] Error installing ModelMapper
[!] /usr/local/bin/git clone https://github.com/lyft/mapper.git /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/d20170607-1181-x2vgep --template= --single-branch --depth 1 --branch 6.0.0

Cloning into '/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/d20170607-1181-x2vgep'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly

```

## Environment:

**Where did the issue happen?**

Xcode 8.3.x, on macOS 10.12 (Sierra)

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

Fastlane 2.3.9

## 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
- _If you have multiple different build configurations (workflows), does the issue affect all/more than one?_ : YES
- _If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds)_ :
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ :

### Linux/Android stack builds

NO

### Other stacks

NO

## Build log

Sent via email.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [June 7, 2017, 11:35am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/2 "2017-06-07T11:35:08Z")

</div>

> [@vinhatpikto](#):
>
> 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 pod install fail at the same pod every time?

Also, can you please follow this guide [How to debug your build locally / "It works on my Mac/PC but not on bitrise.io"](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392) and let us know how it goes?

---

<div class="post-metadata">

**Author:** ![vinhatpikto](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vinhatpikto](https://discuss.bitrise.io/u/vinhatpikto)\
**Post date:** [June 7, 2017, 11:40am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/3 "2017-06-07T11:40:02Z")

</div>

Yes, it always fails at the same pod. You could look at the build log I sent via email.  
I also tried to debug on my local and it all goes well.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [June 7, 2017, 11:41am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/4 "2017-06-07T11:41:01Z")

</div>

> [@vinhatpikto](#):
>
> I also tried to debug on my local and it all goes well.

Did you follow the guide I linked? The important step is to start with a brand new / clean git clone of the repo, into a new directory (preferably into `/tmp`).

---

<div class="post-metadata">

**Author:** ![vinhatpikto](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vinhatpikto](https://discuss.bitrise.io/u/vinhatpikto)\
**Post date:** [June 7, 2017, 11:48am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/5 "2017-06-07T11:48:17Z")

</div>

Weirdly, it works again with just rebuilding, it is the fifth tries.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [June 7, 2017, 11:50am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/6 "2017-06-07T11:50:35Z")

</div>

Might have been a temporary issue on GitHub’s side, they had some issues lately / in the last ~12 hours ([https://status.github.com/messages](https://status.github.com/messages)).

If you’d see this happen again please let us know!

---

<div class="post-metadata">

**Author:** ![vinhatpikto](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vinhatpikto](https://discuss.bitrise.io/u/vinhatpikto)\
**Post date:** [June 7, 2017, 11:52am UTC](https://discuss.bitrise.io/t/cocoapods-fails-to-install-modelmapper-pod/1946/7 "2017-06-07T11:52:29Z")

</div>

Thanks for your instant support!
