Cocoapods v1.0.0 hangs on pod install

cocoapods

#1

I am attempting to upgrade to Cocoapods 1.0.0 from the previous 0.39.x.

Several attempts all result in the following output, all with a significant amount of time spent with the build container just sitting there spinning! Seems like there’s some sort of cache that isn’t getting migrated forward to the new version of Cocoapods (?).

Anybody else hit this? Anybody else successfully using Cocoapods v1.0.0?

bundle exec pod install --verbose
  Preparing

Setting up CocoaPods master repo

Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
  $ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
  Cloning into 'master'...

command bundle exec pod install --verbose took more than 10 minutes since last output

I tried several different settings in circle.yml, detailed here:

5/26/2016 : Issue upgrading to Cocoapods v1.0.0 on CircleCI
Chris, Software Engineer @ Bridj

------------------------------
Attempt 1: Naive

In circle.yml:
dependencies:
  override:
    - sudo gem install cocoapods --version=1.0.0
    - pod install --verbose
  cache_directories:
    - "Pods/"

Result: failure

------------------------------
Attempt 2: With Gemfile

In circle.yml:
dependencies:
  override:
    - bundle exec pod install --verbose
  cache_directories:
    - "Pods/"

Gemfile:
source 'https://rubygems.org'
gem 'cocoapods', '1.0.0'

Result: failure

------------------------------
Attempt 3: With Gemfile, manually install bundler

In circle.yml:
dependencies:
  override:
    - sudo gem install bundler
    - bundle install
    - bundle exec pod install --verbose
  cache_directories:
    - "Pods/"

Gemfile:
source 'https://rubygems.org'
gem 'cocoapods', '1.0.0'

Result: failure


#2

Yep, experiencing the same issue. Sometimes it goes through, also running everything in the context of bundler.


#3

We’re also experiencing the same issue here!


#4

I just spoke with a support engineer at CircleCI. They ought to be posting some more info here shortly.
But tl;dr : the fix here cleared up the issue for me.


#6

Hi @chris-bridj! could you post your final Gemfile and circle.yml
I’m really curious on how did you make Cocoapods 1.0.0 work.


#7

Hi all,

I know it’s been quite a while here and this issue might be resolved. Still, I wanted to get this record up here for posterity.

circle.yml:

  1 machine:
  2   xcode:
  3     version: 7.3.1
  /snip/ 
 19     - sudo gem install bundler
 20     - bundle install
 21     - bundle exec pod install --verbose:
 22        timeout: 300
 23   cache_directories:
 24     - "Pods/"

Gemfile:

  1 source 'https://rubygems.org'
  2 gem 'cocoapods', '1.0.0'

#8