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

Not specifying a version installs an older version #2922

Closed
sgtsquiggs opened this issue Dec 9, 2014 · 1 comment
Closed

Not specifying a version installs an older version #2922

sgtsquiggs opened this issue Dec 9, 2014 · 1 comment
Assignees
Labels
d1:easy An easy ticket that is a good start for first-time contributors s3:detailed Issues with in-depth explanations and examples that make it easier to troubleshoot t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!

Comments

@sgtsquiggs
Copy link

  % pod --version                                                                                                                                                                                               !10252
0.35.0

Not sure if this is wide-spread, but I have seen cocoapods install and older version of a package unless I specifically tell it to install the (defined) latest or greater.

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, "7.0"
inhibit_all_warnings!

pod 'TWTToast/UIKit/TextStyle'
pod 'TWTToast/Foundation/KVO'
  % pod install                                                                                                                                                                                                 !10249
Analyzing dependencies
[!] Unable to find a specification named `UIKit/TextStyle` in `TWTToast/UIKit (0.10)`.

I spent time trying to figure out why the nested subspec wasn't working, until I noticed the (0.10). At the time of writing this, the latest spec in the master repo for TWTToast is 0.13.

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, "7.0"
inhibit_all_warnings!

pod 'TWTToast/UIKit/TextStyle', '~> 0.13'
pod 'TWTToast/Foundation/KVO', '~> 0.13'
  % pod install                                                                                                                                                                                                 !10250
Analyzing dependencies
Downloading dependencies
Installing TWTToast (0.13)
Generating Pods project
Integrating client project

[!] From now on use `Text.xcworkspace`.

Anyone else seen this in the wild?

@segiddins segiddins self-assigned this Dec 9, 2014
@segiddins segiddins added the s2:confirmed Issues that have been confirmed by a CocoaPods contributor label Dec 9, 2014
@segiddins
Copy link
Member

https://github.com/CocoaPods/Core/blob/master/lib/cocoapods-core/specification.rb#L250 just needs to pass along the raise_if_missing parameter. I'll get to this eventually, or someone else can make a PR over on Core and tag me on it.

@segiddins segiddins added s3:detailed Issues with in-depth explanations and examples that make it easier to troubleshoot d1:easy An easy ticket that is a good start for first-time contributors t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! and removed s2:confirmed Issues that have been confirmed by a CocoaPods contributor labels Dec 9, 2014
Ashton-W pushed a commit to Ashton-W/Core that referenced this issue Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d1:easy An easy ticket that is a good start for first-time contributors s3:detailed Issues with in-depth explanations and examples that make it easier to troubleshoot t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
Development

No branches or pull requests

2 participants