AliSoftware / Dip

Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
MIT License
978 stars 75 forks source link

Support for SPM/Xcode11 #222

Closed SlashDevSlashGnoll closed 5 years ago

SlashDevSlashGnoll commented 5 years ago

This week Apple announced the direct support of Swift Package Manager in XCode 11 (obsoleting Carthage/Pods for the most part). Do you plan to support SPM? The current Package.swift isn't complete it seems.

ilyapuchka commented 5 years ago

This should be working now on develop

SlashDevSlashGnoll commented 5 years ago

Was starting our integration with SPM and it doesn't seem to be working for Dip. The error I get is:

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

https://github.com/AliSoftware/Dip — 7.0.1..<8.0.0

We were trying to add it via the UI using https://github.com/AliSoftware/Dip as the URL and choosing the "Up to Next Major" option of 7.0.1 < 8.0.0

Vincent-Loi commented 5 years ago

Getting the same error as @SlashDevSlashGnoll

.package(url: "https://github.com/AliSoftware/Dip", from: "7.0.1")
The package dependency graph can not be resolved; unable find any available tag for the following requirements:

https://github.com/AliSoftware/Dip — 7.0.1..<8.0.0
alphatroya commented 4 years ago

@SlashDevSlashGnoll @Vincent-Loi I think you should build it from develop or wait for maintainer to release a new version tag.

Maybe a minor release with included Package.swift file will be nice idea? @ilyapuchka