Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Raise when a pod can't be found by name.

  • Loading branch information...
commit 2b933ce84e8bd3cf4c3a3b572a923487edc17f29 1 parent 79fa28a
@alloy alloy authored
Showing with 9 additions and 1 deletion.
  1. +4 −0 examples/Podfile
  2. +5 −1 lib/cocoa_pods/resolver.rb
View
4 examples/Podfile
@@ -1,3 +1,6 @@
+
+dependency 'SSZipArchive', '>= 1'
+
#dependency 'ASIHTTPRequest', '1.8'
dependency 'ASIWebPageRequest', '= 1.8'
@@ -16,3 +19,4 @@ dependency 'Reachability' #, '>= 2.0'
# * the ASIWebPageRequest dependency requirement matches this one so should work
#dependency 'ASIHTTPRequest', '1.8.1'
dependency 'ASIHTTPRequest', '>= 1.8'
+
View
6 lib/cocoa_pods/resolver.rb
@@ -12,7 +12,11 @@ def resolve
def find_dependency_sets(specification)
specification.read(:dependencies).each do |dependency|
- Source.search(dependency).each do |set|
+ sets = Source.search(dependency)
+ if sets.empty?
+ raise "Unable to find a pod named `#{dependency.name}'"
+ end
+ sets.each do |set|
# TODO ultimately this compatibility check should be used to try and
# resolve the conflicts, but for now we'll keep it simple.
if existing_set = @sets.find { |s| s == set }
Please sign in to comment.
Something went wrong with that request. Please try again.