Commit 2f82437a authored by Orta Therox's avatar Orta Therox

Improve 1.0 error messages around not-found dependencies - fixes #5135

parent 7b845e7f
......@@ -420,11 +420,14 @@ module Pod
elsif !conflict.existing
conflict.requirements.values.flatten.each do |r|
if search_for(r).empty?
# There is no existing specification inside any of the spec repos with given requirements.
message << "\n\nNone of the spec sources contain a spec satisfying the `#{r}` dependency." \
"\nYou 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.'
# There are no existing specification inside any of the spec repos with given requirements.
message << "\n\nNone of your spec sources contain a spec satisfying the dependency: `#{r}`." \
"\n\nYou have either:" \
"\n * out-of-date source repos which you can update with `pod repo update`."
"\n * mistyped the name or version." \
"\n * not added the source repo that hosts the Podspec to your Podfile." \
"\n\nNote: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default."
else
message << "\n\nSpecs satisfying the `#{r}` dependency were found, " \
'but they required a higher minimum deployment target.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment