Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
2b933ce8
Commit
2b933ce8
authored
Sep 11, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise when a pod can't be found by name.
parent
79fa28ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Podfile
examples/Podfile
+4
-0
resolver.rb
lib/cocoa_pods/resolver.rb
+5
-1
No files found.
examples/Podfile
View file @
2b933ce8
dependency
'SSZipArchive'
,
'>= 1'
#dependency 'ASIHTTPRequest', '1.8'
#dependency 'ASIHTTPRequest', '1.8'
dependency
'ASIWebPageRequest'
,
'= 1.8'
dependency
'ASIWebPageRequest'
,
'= 1.8'
...
@@ -16,3 +19,4 @@ dependency 'Reachability' #, '>= 2.0'
...
@@ -16,3 +19,4 @@ dependency 'Reachability' #, '>= 2.0'
# * the ASIWebPageRequest dependency requirement matches this one so should work
# * the ASIWebPageRequest dependency requirement matches this one so should work
#dependency 'ASIHTTPRequest', '1.8.1'
#dependency 'ASIHTTPRequest', '1.8.1'
dependency
'ASIHTTPRequest'
,
'>= 1.8'
dependency
'ASIHTTPRequest'
,
'>= 1.8'
lib/cocoa_pods/resolver.rb
View file @
2b933ce8
...
@@ -12,7 +12,11 @@ module Pod
...
@@ -12,7 +12,11 @@ module Pod
def
find_dependency_sets
(
specification
)
def
find_dependency_sets
(
specification
)
specification
.
read
(
:dependencies
).
each
do
|
dependency
|
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
# TODO ultimately this compatibility check should be used to try and
# resolve the conflicts, but for now we'll keep it simple.
# resolve the conflicts, but for now we'll keep it simple.
if
existing_set
=
@sets
.
find
{
|
s
|
s
==
set
}
if
existing_set
=
@sets
.
find
{
|
s
|
s
==
set
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment