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
7ff33334
Commit
7ff33334
authored
Oct 24, 2015
by
Muhammed Yavuz Nuzumlali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve message when there is no spec in repos for dependency set in Podfile
parent
6d2604cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
resolver.rb
lib/cocoapods/resolver.rb
+7
-1
resolver_spec.rb
spec/unit/resolver_spec.rb
+4
-0
No files found.
CHANGELOG.md
View file @
7ff33334
...
@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
##### Enhancements
*
Improve message when there is no spec in repos for dependency set in Podfile.
[
Muhammed Yavuz Nuzumlalı
](
https://github.com/manuyavuz
)
[
#4430
](
https://github.com/CocoaPods/CocoaPods/issues/4430
)
*
Reduce the number of times the user's Xcode project is opened, speeding up
*
Reduce the number of times the user's Xcode project is opened, speeding up
installation.
installation.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
...
...
lib/cocoapods/resolver.rb
View file @
7ff33334
...
@@ -400,7 +400,13 @@ module Pod
...
@@ -400,7 +400,13 @@ module Pod
message
<<
"
\n
You should explicitly specify the version in order to install a pre-release version"
message
<<
"
\n
You should explicitly specify the version in order to install a pre-release version"
elsif
!
conflict
.
existing
elsif
!
conflict
.
existing
conflict
.
requirements
.
values
.
flatten
.
each
do
|
r
|
conflict
.
requirements
.
values
.
flatten
.
each
do
|
r
|
unless
search_for
(
r
).
empty?
if
search_for
(
r
).
empty?
# There is no existing specification inside any of the spec repos with given requirements.
message
<<
"
\n\n
None of the spec sources contain a spec satisfying the `
#{
r
}
` dependency."
\
"
\n
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.'
else
message
<<
"
\n\n
Specs satisfying the `
#{
r
}
` dependency were found, "
\
message
<<
"
\n\n
Specs satisfying the `
#{
r
}
` dependency were found, "
\
'but they required a higher minimum deployment target.'
'but they required a higher minimum deployment target.'
end
end
...
...
spec/unit/resolver_spec.rb
View file @
7ff33334
...
@@ -405,6 +405,10 @@ module Pod
...
@@ -405,6 +405,10 @@ module Pod
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
.
message
.
should
.
match
(
/Unable to satisfy the following requirements/
)
e
.
message
.
should
.
match
(
/Unable to satisfy the following requirements/
)
e
.
message
.
should
.
match
(
/`AFNetworking \(= 3.0.1\)` required by `Podfile`/
)
e
.
message
.
should
.
match
(
/`AFNetworking \(= 3.0.1\)` required by `Podfile`/
)
e
.
message
.
should
.
match
(
/None of the spec sources contain a spec satisfying the `AFNetworking \(= 3.0.1\)` dependency./
)
e
.
message
.
should
.
match
(
/You have either; mistyped the name or version,/
)
e
.
message
.
should
.
match
(
/ not added the source repo that hosts the Podspec to your Podfile,/
)
e
.
message
.
should
.
match
(
/ or not got the latest versions of your source repos./
)
end
end
it
'takes into account locked dependencies'
do
it
'takes into account locked dependencies'
do
...
...
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