With Cocoapods 1.0.0 being close to its release date, we want to remind you that there are breaking changes being introduced in this major new version. You can read about this in more detail in this blog post.
By default, we will run the pod install command to install all the pods specified in your project’s Podfile. This command will use the version of Cocoapods that is pre-installed in the OS X build image, right now it is 0.39.0. If you generate your Podfile with Cocoapods 1.0.0, this might result in a build failure.
To ensure that the version of Cocoapods used in your OS X project is correct at all times, independently of the version pre-installed in our build image, we suggest that you commit a Gemfile to your repo.
In the Gemfile you will be able to specify the version of Cocoapods that you would like to use. Here is an example Gemfile:
If we detect a Podfileand a Gemfile at the same time, we will run the following commands:
bundle install
bundle exec pod install
This execute pod install with the version of Cocoapods specified in your Gemfile.
By adding a Gemfile you will be able to choose your own timing around upgrading to Cocoapods 1.0.0—and will make sure that you control the version of Cocoapods being used in your build at every point.
You can find more information about the software pre-installed in our OS X build image in this doc.
Would be great to have the output of the gem install json -v '1.8.3' step for debugging—could you please add that step to your circle.yml separately, in the dependencies: pre section?
Also, before doing that, do you mind rebuilding without cache?
I put this in a file called Gemfile at the root of my repo, but my CircleCI build is still using cocoa pods v. 1.0.0. What could I be doing wrong? Do I need to uninstall v. 1.0.0?
Actually, I have since figured out that sometimes Cocoapods 1.0.x is used, and sometimes 0.39.0 is used, and nothing I do to the circle.yml file actually has an effect. I can rebuild with out changes, and suddenly it uses the right version! What’s going on???