Files icon indicating copy to clipboard operation
Files copied to clipboard

Using the Swift Package Manager - Getting Error

Open aanchalkalani opened this issue 4 years ago • 2 comments

Hi

While installing in the package getting the below error:-

**error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: https://github.com/JohnSundell/Files @ 4.1.1..<5.0.0**

Any help will really be appreciated.

In Package file:-

.package( url: "https://github.com/JohnSundell/Files", .upToNextMajor(from: "4.1.1") ),

Thanks, Aanchal

aanchalkalani avatar Mar 03 '20 06:03 aanchalkalani

I'm having this same issue.

benduckwdesign avatar Apr 27 '20 03:04 benduckwdesign

@aanchalkalani Just figured out this error can occur if you are trying to use Files (which is currently using Swift 5) with a lower version of Swift like 4.2.1. Try changing your version of Files to "2.3.0". It should work then... but of course you'd be missing a bunch of new features. I'd like to update to Swift 5 without upgrading macOS past 10.13.6, but I'm not sure there's a solution for that.

EDIT: You can also try installing the Swift 5 Runtime Support for Command Line Tools from the More Downloads... section of the Apple Developer downloads.

benduckwdesign avatar Apr 27 '20 03:04 benduckwdesign