Cocoapods: Due to the previous na茂ve CocoaPods resolver...which now leads to a conflict

Created on 8 Apr 2015  路  10Comments  路  Source: CocoaPods/CocoaPods

I am using version 0.36.3 and I'm having a similar problem reported in #2920, I'm using a MagicalRecord on a development branch and I receive the error

[!] Due to the previous na茂ve CocoaPods resolver, you were using a pre-release version of MagicalRecord, without explicitly asking for a pre-release version, which now leads to a conflict. Please decide to either use that pre-release version by adding the version requirement to your Podfile (e.g. pod 'MagicalRecord', '= 3.0.0.dev.1428414311') or revert to a stable version by running pod update MagicalRecord.

I can pod update MagicalRecord and it works fine, but I would like to use this on a CI server which uses pod install and therefore doesn't build. Any solutions?

Most helpful comment

I had to run pod repo update to get rid off this error

All 10 comments

As the error message says, just change your dependency on MagicalRecord to include a pre-release identifier.

How do I specify an alternative branch?
I currently have
pod 'MagicalRecord', :git => "https://github.com/magicalpanda/MagicalRecord.git", :branch => "release/3.0"

As suggested I tried this
pod 'MagicalRecord','= 3.0.0.dev.1428414311'

but it gives

[!] Unable to satisfy the following requirements:

  • MagicalRecord (= 3.0.0.dev.1428414311) required by Podfile

What about just running pod update MagicalRecord this one time and committing the results, and using pod install hereafter?

Even after committing a pod update MagicalRecord to git, CI server fails the pod install with the above error.

This also started happening for me. My Podfile explicitly asks for the pre-release version, but I can't run a pod update because it's the CI that is failing.

I got things to work but had to fork the repo and remove the generated timestamp in the podspec from the version number

I had to run pod repo update to get rid off this error

pod repo update solved this issue on CI for me. In my case, the CI server's master repo had RxSwift 4.0.0-beta.0, but not the 4.0.0-beta.1 version the app was asking for.

I tried to update pod repo update but i ddnt work so i removed all the pod file inside ios folder and recreate Podfile and pod install.

@kdawgwilk, I've done the same, had to fork MagicalRecord. I just wonder, what is the reason to write
s.version = "3.0.0.dev.#{Time.now.to_i}" in podspec ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hmistry picture hmistry  路  3Comments

sonu5 picture sonu5  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

marzapower picture marzapower  路  3Comments

pallaviMN picture pallaviMN  路  3Comments