This repository provides an example of macOS and Linux cross platform Swift PM based realisation of HelloWorldFS
1. Install OSXFUSE
2. Install Swift build toolchain. You can skip this step if you already have Xcode installed
swift build -Xcc -DFUSE_USE_VERSION=26 -Xcc -D_FILE_OFFSET_BITS=64 -Xswiftc -I/usr/local/include/osxfuse -Xlinker -L/usr/local/lib
mkdir ../mount_point
.build/debug/HelloWorldFS ../mount_point
cat ../mount_point/hello.txt
apt-get update
apt-get install libfuse-dev
2. Install Swift build toolchain
swift build -Xcc -DFUSE_USE_VERSION=26 -Xcc -D_FILE_OFFSET_BITS=64 -Xswiftc -I/usr/include -Xlinker -L/usr/lib -Xcc -D_GNU_SOURCE
mkdir ../mount_point
.build/debug/HelloWorldFS ../mount_point
cat ../mount_point/hello.txt