AliSoftware / Dip

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

Dip 7.0.0 not working with Swift Package Manager #213

Closed dal-mas closed 5 years ago

dal-mas commented 5 years ago

I've update my project to swift 4.2, but when I try to update Dip to 7.0.0, it doesn't work. Even if I clone the repo and add it as a dependency using the local path, I always end up with this problem:

error: terminated(128): git -C /Users/.../.build/checkouts/Dip.git-3060003739911156547 checkout -f 593129c63ec840144208827363c7d13e8c867c30 output:

Any thoughts? I'm really stuck on this.

ilyapuchka commented 5 years ago

Sorry @fedal-mas this error message does not give any specifics 🤷‍♂️

dal-mas commented 5 years ago

@ilyapuchka I think that the problem might be that the 7.0.0 version is not compatible with the swift package manager. Any other version is added without any problem, but doesn't work because it is an old swift version 😑

ilyapuchka commented 5 years ago

I'm not sure what this incompatibility might be. Can you post your complete Package.swift file?

dal-mas commented 5 years ago

Actually now it's working!

Really don't know why, I haven't made any changes on my Package.swift file, except by commenting and uncommenting the line to add Dip... 🤔

Anyway, thanks for your time!