# Obscure error during pod install

**URL:** <https://discuss.circleci.com/t/obscure-error-during-pod-install/4667>\
**Category:** Mobile\
**Created:** [June 18, 2016, 12:31am UTC](https://discuss.circleci.com/t/obscure-error-during-pod-install/4667 "2016-06-18T00:31:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garnett](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/garnett/32/1925_2.png) [@garnett](https://discuss.circleci.com/u/garnett)\
**Post date:** [June 18, 2016, 12:31am UTC](https://discuss.circleci.com/t/obscure-error-during-pod-install/4667/1 "2016-06-18T00:31:27Z")

</div>

EDIT: it happens because of `pod check` command at the start of circle’s predefined `Install Cocoapods` step

I use gemfile with cocoapods 1.0.1

My circle config is:  
`machine: xcode: version: "7.3.1" dependencies: pre: - brew install graphicsmagick - script/bootstrap-if-needed cache_directories: - "Carthage" test: override: - make test`

I’m getting strange error on `pod install` step:  
`  
cd “.”  
export LC\_CTYPE=“en\_US.UTF-8”  
pod check || bundle exec pod install

[!] Invalid `Podfile` file: undefined method `inherit!’ for #Pod::Podfile:0x007fdbe33f6b48. Updating CocoaPods might fix the issue.

# from /Users/distiller/thor/Podfile:47

# -------------------------------------------

# target ‘swiftGift2Tests’ do

> ```
> inherit! :search_paths
> 
> ```

# pod ‘Expecta’

# -------------------------------------------

Setting up CocoaPods master repo`

After it building continues, but I see  
`Setting up CocoaPods master repo Setup completed`  
in the logs and pod step takes around ~5 minutes which makes me think that cache does not really work.

---

<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:33am UTC](https://discuss.circleci.com/t/obscure-error-during-pod-install/4667/2 "2018-06-18T11:33:28Z")

</div>

Closed on June 18, 2018, 11:33am UTC


