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

pod install for explicit pod URL not working with 0.35rc1 #2768

Closed
karpelcevs opened this issue Nov 2, 2014 · 4 comments
Closed

pod install for explicit pod URL not working with 0.35rc1 #2768

karpelcevs opened this issue Nov 2, 2014 · 4 comments
Assignees
Labels
t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Milestone

Comments

@karpelcevs
Copy link

pod install is failing with the following error:

Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `Specta (from `https://github.com/specta/specta.git`, tag `v0.3.0.beta1`)` required by `Podfile`
- `Specta (= 0.3.0.beta1)` required by `Podfile.lock`

pod outdated says nothing is outdated. Same Podfile worked a moment a ago with 0.34.4 CocoaPods.

Podfile looks like this:

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

platform :ios, '7.0'

# ignore all warnings from all pods
inhibit_all_warnings!

pod 'AFNetworking', '~> 2.0'
pod 'MBProgressHUD'
pod 'KZPropertyMapper', '~> 2.0'
pod 'FMDB', '~> 2.0'
pod 'CVKInjector'

# test targets
target 'app-tests', :exclusive => true do
  pod 'OCMock', '~> 3.0'
  pod 'Expecta', '~> 0.3'
  pod 'Specta', :git => 'https://github.com/specta/specta.git', :tag => 'v0.3.0.beta1'
end

I tried removing source command, it didn't change anything.
Referencing 'Specta' pod without explicit :git worked at once.

pod update doesn't work either. Its output is below:

Update all pods
  Preparing

Analyzing dependencies

Updating spec repositories
  $ /usr/bin/git rev-parse  >/dev/null 2>&1
Updating spec repo `master`
  $ /usr/bin/git pull --ff-only
  Already up-to-date.

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods`: (``)
  Using `ARCHS` setting to build architectures of target `Pods-OpenHouseTests`: (``)

Finding Podfile changes
  M Specta
  - AFNetworking
  - CVKInjector
  - Expecta
  - FMDB
  - KZPropertyMapper
  - MBProgressHUD
  - OCMock

Fetching external sources
-> Pre-downloading: `Specta` from `https://github.com/specta/specta.git`, tag `v0.3.0.beta1`
 > Git download
 > Git download
     $ /usr/bin/git clone https://github.com/specta/specta.git /Users/coverback/Projects/openhouse/Pods/Specta --single-branch --depth 1 --branch v0.3.0.beta1
     Cloning into '/Users/coverback/Projects/openhouse/Pods/Specta'...
     Note: checking out '16949f4021a5560b1c78c439ad07d596c36cbac3'.

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.

     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:

       git checkout -b new_branch_name


Resolving dependencies of `Podfile`
.
[!] Unable to satisfy the following requirements:

- `Specta (from `https://github.com/specta/specta.git`, tag `v0.3.0.beta1`)` required by `Podfile`

/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/resolver.rb:58:in `rescue in resolve'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/resolver.rb:53:in `resolve'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer/analyzer.rb:328:in `block in resolve_dependencies'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/user_interface.rb:49:in `section'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer/analyzer.rb:326:in `resolve_dependencies'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer/analyzer.rb:57:in `analyze'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer.rb:184:in `analyze'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer.rb:106:in `block in resolve_dependencies'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/user_interface.rb:49:in `section'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer.rb:105:in `resolve_dependencies'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/installer.rb:90:in `install!'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/command/project.rb:155:in `run'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/lib/cocoapods/command.rb:46:in `run'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.35.0.rc1/bin/pod:50:in `<top (required)>'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/bin/pod:23:in `load'
/Users/coverback/.rvm/gems/ruby-2.0.0-p481/bin/pod:23:in `<main>'
@segiddins
Copy link
Member

Could you please also post your Podfile.lock.

@karpelcevs
Copy link
Author

Sure.

PODS:
  - AFNetworking (2.4.1):
    - AFNetworking/NSURLConnection
    - AFNetworking/NSURLSession
    - AFNetworking/Reachability
    - AFNetworking/Security
    - AFNetworking/Serialization
    - AFNetworking/UIKit
  - AFNetworking/NSURLConnection (2.4.1):
    - AFNetworking/Reachability
    - AFNetworking/Security
    - AFNetworking/Serialization
  - AFNetworking/NSURLSession (2.4.1):
    - AFNetworking/Reachability
    - AFNetworking/Security
    - AFNetworking/Serialization
  - AFNetworking/Reachability (2.4.1)
  - AFNetworking/Security (2.4.1)
  - AFNetworking/Serialization (2.4.1)
  - AFNetworking/UIKit (2.4.1):
    - AFNetworking/NSURLConnection
    - AFNetworking/NSURLSession
  - CVKInjector (0.1.0)
  - Expecta (0.3.1)
  - FMDB (2.4):
    - FMDB/standard
  - FMDB/common (2.4)
  - FMDB/standard (2.4):
    - FMDB/common
  - KZPropertyMapper (2.5.1)
  - MBProgressHUD (0.9)
  - OCMock (3.1.1)
  - Specta (0.3.0.beta1)

DEPENDENCIES:
  - AFNetworking (~> 2.0)
  - CVKInjector
  - Expecta (~> 0.3)
  - FMDB (~> 2.0)
  - KZPropertyMapper (~> 2.0)
  - MBProgressHUD
  - OCMock (~> 3.0)
  - Specta (from `https://github.com/specta/specta.git`, tag `v0.3.0.beta1`)

EXTERNAL SOURCES:
  Specta:
    :git: https://github.com/specta/specta.git
    :tag: v0.3.0.beta1

SPEC CHECKSUMS:
  AFNetworking: 0aabc6fae66d6e5d039eeb21c315843c7aae51ab
  CVKInjector: 6226ce3b86abcda5dbc72f8a470f3c3c2478d471
  Expecta: 03aabd0a89d8dea843baecb19a7fd7466a69a31d
  FMDB: 0b2fa25e5264ef177973c0cb8c02c711107979aa
  KZPropertyMapper: f06b00ff0c114bf8db45754a694b57278a628b5b
  MBProgressHUD: 2038dbcf3dce73215abed6001657043d53aa79a8
  OCMock: f6cb8c162ab9d5620dddf411282c7b2c0ee78854
  Specta: 63e8ac8e07db6675c7096d37f77a266a1be4c02d

COCOAPODS: 0.34.4

Podfile.lock didn't get updated on pod install, that's why no new syntax in it.

@segiddins
Copy link
Member

Awesome, thanks. I'll look into this tomorrow at the office.

-Samuel E. Giddins

On Nov 2, 2014, at 3:06 PM, Romans Karpelcevs notifications@github.com wrote:

Sure.

PODS:

  • AFNetworking (2.4.1):
    • AFNetworking/NSURLConnection
    • AFNetworking/NSURLSession
    • AFNetworking/Reachability
    • AFNetworking/Security
    • AFNetworking/Serialization
    • AFNetworking/UIKit
  • AFNetworking/NSURLConnection (2.4.1):
    • AFNetworking/Reachability
    • AFNetworking/Security
    • AFNetworking/Serialization
  • AFNetworking/NSURLSession (2.4.1):
    • AFNetworking/Reachability
    • AFNetworking/Security
    • AFNetworking/Serialization
  • AFNetworking/Reachability (2.4.1)
  • AFNetworking/Security (2.4.1)
  • AFNetworking/Serialization (2.4.1)
  • AFNetworking/UIKit (2.4.1):
    • AFNetworking/NSURLConnection
    • AFNetworking/NSURLSession
  • CVKInjector (0.1.0)
  • Expecta (0.3.1)
  • FMDB (2.4):
    • FMDB/standard
  • FMDB/common (2.4)
  • FMDB/standard (2.4):
    • FMDB/common
  • KZPropertyMapper (2.5.1)
  • MBProgressHUD (0.9)
  • OCMock (3.1.1)
  • Specta (0.3.0.beta1)

DEPENDENCIES:

  • AFNetworking (~> 2.0)
  • CVKInjector
  • Expecta (~> 0.3)
  • FMDB (~> 2.0)
  • KZPropertyMapper (~> 2.0)
  • MBProgressHUD
  • OCMock (~> 3.0)
  • Specta (from https://github.com/specta/specta.git, tag v0.3.0.beta1)

EXTERNAL SOURCES:
Specta:
:git: https://github.com/specta/specta.git
:tag: v0.3.0.beta1

SPEC CHECKSUMS:
AFNetworking: 0aabc6fae66d6e5d039eeb21c315843c7aae51ab
CVKInjector: 6226ce3b86abcda5dbc72f8a470f3c3c2478d471
Expecta: 03aabd0a89d8dea843baecb19a7fd7466a69a31d
FMDB: 0b2fa25e5264ef177973c0cb8c02c711107979aa
KZPropertyMapper: f06b00ff0c114bf8db45754a694b57278a628b5b
MBProgressHUD: 2038dbcf3dce73215abed6001657043d53aa79a8
OCMock: f6cb8c162ab9d5620dddf411282c7b2c0ee78854
Specta: 63e8ac8e07db6675c7096d37f77a266a1be4c02d

COCOAPODS: 0.34.4
Podfile.lock didn't get updated on pod install, that's why no new syntax in it.


Reply to this email directly or view it on GitHub.=

@segiddins segiddins added this to the 0.35.0 milestone Nov 3, 2014
@kylef kylef added the t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! label Nov 3, 2014
@segiddins
Copy link
Member

I have narrowed down the issue: it seems to only be happening for external source dependencies where the version ends up being a pre-release version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants