libsmb2 Source Code
CineManiac uses libsmb2 by Ronnie Sahlberg, version 6.3, to play videos from SMB file sharing (Mac, Windows and NAS shared folders). The library is licensed under the GNU Lesser General Public License version 2.1 or later, and its DCE/RPC parts under the BSD 2-Clause licence. The libsmb2 source is unmodified.
Download
cinemaniac-libsmb2-6.3-source.tar.gz (273 KB)
SHA-256: ad4f54ec1a085241b1e7477f24c3c6b0f38009f5d63c76c5bfcf780ef125ed2e
It contains:
libsmb2-6.3.tar.gz: the unmodified upstream source, as published at github.com/sahlberg/libsmb2 (SHA-2565011003fd091513f897e1ebbb8e1a40af634386df7199716348b7f77569a2790).build-libsmb2.sh: the exact script that compiles and packages the library. Kerberos support is left out, and the public headers' include paths are rewritten for framework packaging.LIBSMB2_BUILD_INFO.md: the version and toolchain used for the shipped build.LICENCE-LGPL-2.1.txtandCOPYING: the licences, and which parts each covers.README.md: how to rebuild the library and replace it.
Rebuilding and replacing the library
On a Mac with Xcode, put build-libsmb2.sh in a Scripts/ folder and the libsmb2 tarball in Vendor/libsmb2/src/ next to it, then run Scripts/build-libsmb2.sh. It produces libsmb2.xcframework, for iOS and visionOS.
The library ships as a separate dynamic framework, CineManiac.app/Frameworks/libsmb2.framework, loaded at run time. A modified build with the same public interface can replace it there; the app must then be re-signed to install it on a device, as for any iOS or visionOS app.
Contact
Questions about this source: email andy.kim.jkhoodles@gmail.com.