# Fastlane failed to run pod install

**URL:** <https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873>\
**Category:** Mobile\
**Tags:** cocoapods, fastlane\
**Created:** [May 9, 2016, 8:49am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873 "2016-05-09T08:49:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarunw](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sarunw/32/753_2.png) [@sarunw](https://discuss.circleci.com/u/sarunw)\
**Post date:** [May 9, 2016, 8:49am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/1 "2016-05-09T08:49:04Z")

</div>

I didn’t change any circle.yml or fastfile recently, but this morning I got this error. Anybody know what’s going wrong here?

```auto
[01:39:29]: $ bundle exec pod install
[01:39:29]: ▸ /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.12.1/lib/bundler/rubygems_integration.rb:373:in `block in replace_bin_path': can't find executable bundle (Gem::Exception)
[01:39:29]: ▸ from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems.rb:278:in `activate_bin_path'
[01:39:29]: ▸ from /usr/local/lib/ruby/gems/2.0.0/bin/bundle:22:in `<main>'
[01:39:29]: Variable Dump:
[01:39:29]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios production"}
[01:39:29]: Exit status of command 'bundle exec pod install' was 1 instead of 0.
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.12.1/lib/bundler/rubygems_integration.rb:373:in `block in replace_bin_path': can't find executable bundle (Gem::Exception)
	from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems.rb:278:in `activate_bin_path'
	from /usr/local/lib/ruby/gems/2.0.0/bin/bundle:22:in `<main>'

```

---

<div class="post-metadata">

**Author:** ![Eric](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/eric/32/2759_2.png) [@Eric](https://discuss.circleci.com/u/Eric)\
**Post date:** [May 10, 2016, 6:38am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/2 "2016-05-10T06:38:24Z")

</div>

Hi Sarun,

This looks like an issue with Rubygems that I’ve seen on the Ubuntu containers. It’s a bug with recent versions of Rubygems and certain combinations of Rubygems and Bundler. I’ll bring this to the attention of our OS X team. As a workaround, can you try seeing if this fixes the error?

```auto
sudo gem update --system 2.4.8
gem uninstall bundler
gem install bundler

```

---

<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:** [May 10, 2016, 1:29pm UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/3 "2016-05-10T13:29:39Z")

</div>

Hi Sarun,  
A follow-up question: could you please installing a _newer_ version of `rubygems` in your build? Something like this should do it:

```auto
dependencies:
  pre:
    - gem update --system

```

We are very sorry for the trouble, and we hope to fix this soon. We would really appreciate your help debugging this.

---

<div class="post-metadata">

**Author:** ![Raman148](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Raman148](https://discuss.circleci.com/u/Raman148)\
**Post date:** [May 10, 2016, 9:37pm UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/4 "2016-05-10T21:37:26Z")

</div>

Unfortunately seeing the same error, with the workarounds

---

<div class="post-metadata">

**Author:** ![jschmid](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jschmid/32/768_2.png) [@jschmid](https://discuss.circleci.com/u/jschmid)\
**Post date:** [May 11, 2016, 7:41am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/5 "2016-05-11T07:41:21Z")

</div>

I do have the same kind of problem:

```bash
[08:10:20]: $ make sort-project
[08:10:20]: ▸ bundle exec synx -p -e "Vendor" project.xcodeproj
[08:10:20]: ▸ /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.12.3/lib/bundler/rubygems_integration.rb:373:in `block in replace_bin_path': can't find executable bundle (Gem::Exception)
[08:10:20]: ▸ from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems.rb:278:in `activate_bin_path'
[08:10:20]: ▸ from /usr/local/lib/ruby/gems/2.0.0/bin/bundle:22:in `<main>'
[08:10:20]: ▸ make: *** [sort-project] Error 1

```

My circle.yml already contained:

```auto
dependencies:
  pre:
    - sudo gem update --system
    - sudo gem install bundler

```

My last successful build was on May 6. The next build on May 10 failed. Successful builds do not build anymore.

**Edit** : Using RubyGems 2.4.8 as [suggested by Eric](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/2?u=jschmid) does not work better.

---

<div class="post-metadata">

**Author:** ![jschmid](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jschmid/32/768_2.png) [@jschmid](https://discuss.circleci.com/u/jschmid)\
**Post date:** [May 12, 2016, 8:36am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/6 "2016-05-12T08:36:30Z")

</div>

I “successfully” turned my build back to green.

I now use RubyGems 2.6.1 and Bundler 1.12.1.

Don’t ask me why those two specific versions. I don’t know.

---

<div class="post-metadata">

**Author:** ![nerd0geek1](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/nerd0geek1/32/2903_2.png) [@nerd0geek1](https://discuss.circleci.com/u/nerd0geek1)\
**Post date:** [May 12, 2016, 3:57pm UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/7 "2016-05-12T15:57:51Z")

</div>

Hi, Sarun.

I encountered the same problem with fastlane, like

bundle exec fastlane myCustomAction  
-\> bundle exec pod install  
-\> same error occured!!

and I wrote as follows in fastlane/Fastfile,

```auto
  cocoapods(use_bundle_exec: false)

```

It seems that calling `bundle exec pod install` during fastlane action causes error.

I hope my answer help you.

---

<div class="post-metadata">

**Author:** ![i-schuetz](https://avatars.discourse-cdn.com/v4/letter/i/eb8c5e/32.png) [@i-schuetz](https://discuss.circleci.com/u/i-schuetz)\
**Post date:** [November 3, 2016, 4:34pm UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/8 "2016-11-03T16:34:16Z")

</div>

I also just got this with fastlane. The answer provided helped.

---

<div class="post-metadata">

**Author:** ![sleepywk](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sleepywk](https://discuss.circleci.com/u/sleepywk)\
**Post date:** [January 15, 2017, 1:35am UTC](https://discuss.circleci.com/t/fastlane-failed-to-run-pod-install/3873/9 "2017-01-15T01:35:10Z")

</div>

this answer helps me a lot! thanks!

---

<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/fastlane-failed-to-run-pod-install/3873/10 "2018-06-18T11:33:27Z")

</div>

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


