Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem resolving dependencies when building on Travis with CocoaPods 1.0.0.beta.6 #5149

Closed
1 task done
YoniTsafir opened this issue Apr 13, 2016 · 3 comments
Closed
1 task done
Labels
s1:awaiting input Waiting for input from the original author

Comments

@YoniTsafir
Copy link

Report

NOTE:
I'm not sure if this is a Travis issue or a CocoaPods issue, since I can't reproduce this locally but only on Travis. However - since what Travis does when failing is running pod install and it seems to be a very clear problem in dependency mechanism I doubt it's not related to CocoaPods itself.
I managed to reproduce the problem on this repo: https://github.com/joytunes/cocoapods-bug
And problem can be seen in Travis build's log: https://travis-ci.org/joytunes/cocoapods-bug/builds/122806124

What did you do?

Trying to run a Travis build of a very straightforward pod with cocoapods 1.0.0.beta.6, after running pod update locally and committing the Podfile.lock.
In the example it has only DTCoreText as a dependency, although I saw this happen with other pods as well.

What did you expected to happen?

Travis would easily manage to run pod install

What happened instead?

Travis writes this error which doesn't make sense (dependencies aren't conflicting and 1.7.10 seems like a very legit version in the Specs repo):

[!] Unable to satisfy the following requirements:
- `DTFoundation/Core (= 1.7.10)` required by `Podfile.lock`
- `DTFoundation/Core (~> 1.7.5)` required by `DTCoreText (1.6.17)`

None of the spec sources contain a spec satisfying the `DTFoundation/Core (= 1.7.10)` dependency.
You have either; mistyped the name or version, not added the source repo that hosts the Podspec to your Podfile, or not got the latest versions of your source repos.

Podfile

source 'https://github.com/CocoaPods/Specs.git'
project 'cocoapods-bug.xcodeproj'

target 'cocoapods-bug' do
    pod 'DTCoreText'
end
@YoniTsafir
Copy link
Author

A workaround would be to put
pod 'DTFoundation/Core' '=1.7.5'
in the Podfile, but this is of course a lousy workaround.

@YoniTsafir YoniTsafir changed the title Problem resolving dependencies when building on Travis with CocoaPods 1.0.0.beta6 Problem resolving dependencies when building on Travis with CocoaPods 1.0.0.beta.6 Apr 13, 2016
@segiddins
Copy link
Member

Maybe you need to run pod install with --repo-update if Travis isn't providing an up-to-date specs repository and you're not checking in your Pods directory.

@segiddins segiddins added the s1:awaiting input Waiting for input from the original author label Apr 13, 2016
@YoniTsafir
Copy link
Author

Yep this solved it. Thanks! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s1:awaiting input Waiting for input from the original author
Projects
None yet
Development

No branches or pull requests

2 participants