1

I am looking for any kind tips or libraries that would allow me to mount an SMB share from within Swift. I looked into AMSMB2, but it doesn't actually mount the share, it just connects to it. I have also looked into invoking a bash script from Swift that uses mount_smbfs, which has been closest to what I need.

The NetFS library does seem to have the matching functionality, but I can't find any documentation for it provided by Apple. I tried to wing it without any documentation, but the functions aren't very verbal about what is wrong, which is why I'm seeing if there is anything else out there.

Has anyone every tried using SMB with a Swift application?

0

Visuality Systems has a commercial licensed solution called YNQ (written in C) that you can integrate to your application.

If you want to mount a share using a driver this won't help, but if you want to use the mount point provided by the YNQ and then do all the operations you wants this illustration for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.