MatthewYork / DateTools

Dates and times made easy in iOS
MIT License
7.22k stars 952 forks source link

The package dependency graph can not be resolved #289

Open pitt500 opened 4 years ago

pitt500 commented 4 years ago

Hello,

Today I tried to add DateTools through Swift package manager in Xcode 11.3 and I got this error:

image

The package dependency graph can not be resolved; unable find any available tag for the following requirements:

https://github.com/MatthewYork/DateTools.git — 4.0.0..<5.0.0

My only way to make it work is by adding it manually (without using cocoapods), but I wonder if there is something wrong with my side that I could do to fix this issue or in fact, the library has a bug with SPM.

Thanks.

MatthewYork commented 4 years ago

SPM support will be available soon. It is currently using Swift 3 tooling and most likely incompatible with whatever you are doing now.

I have been on a very long hiatus, but have returned and would like to get DateTools current. I assume there will be a pull request soon, which I will certainly merge.

pitt500 commented 4 years ago

Ok, let me check if I can help you upgrade to swift 5 and/or SPM support. Thanks for your response @MatthewYork

prabh-62 commented 3 years ago

I tried adding DateTools via Swift Package Manager (Xcode 12.4) today

dateTools_SPM_5

and I received an error:

Package Resolution Failed

"DateTools" could not be resolved

because DateTools >=2.0.0 contains incompatible tools version and root depends on DateTools 5.0.0..<6.0.0, version solving failed.
dateTools_SPM_error

I see there are some open pull requests which aim to fix this issue. I can open a Pull request if none of the open pull requests addressing this issue are going to get merged.