AMSMB2 icon indicating copy to clipboard operation
AMSMB2 copied to clipboard

SPM Support

Open Yoorque opened this issue 3 years ago • 1 comments

First of all, I would like to thank you for making this library. It is really useful and user friendly 👍 Nevertheless, distribution with the library as a submodule seem to be a little tricky. It would be great if SPM support was on it's way, since I use SPM for other libraries in my project and I'm reluctant to mix dependency managers. Do you have an estimate when the SPM support will be available?

Thanks again. Your effort is much appreciated.

Yoorque avatar Nov 30 '21 09:11 Yoorque

Leaving a comment for others

This project doesn't support SPM, you can import it with the git link into XCode through "Add Packages", but you will fail to build as described in issue #77

beks6 avatar Jan 04 '22 00:01 beks6

SPM support added with #89

OmranK avatar May 04 '23 16:05 OmranK

I get a warning on the package

"Source files for target SMB2 should be located under /Users/user/Library/Developer/Xcode/DerivedData/AppName-{hash}/SourcePackages/checkouts/AMSMB2/libsmb2"

and an error in AMSMB2.swift

No such module 'SMB2'

when adding the package to my project

beks6 avatar May 08 '23 10:05 beks6

Package manager automatically pulls the latest tag which is currently a prior commit to the one with the fix.

@amosavian can you please make a new tag/release so people can get the fixed package.

@beks6 you can fork the repo and create a tag for the latest commit and it will work in the meantime.

OmranK avatar May 08 '23 15:05 OmranK

Please use version 3.0.0

amosavian avatar Nov 15 '23 17:11 amosavian