Building static library fails due to missing header file (macos)

Complete noob alert!
I am just starting out with trying to build/use gstreamer and am therefore overwhelmed by where and how to start troubleshooting.
I have read through the docs on how to build gstreamer from source on the gitlab site but it hasn’t helped me figure out my issue.

For my application, i want to build a static binary of gstreamer (which i later want to optimize by only including the necessary modules).
I have cloned the 1.24 branch from gitlab, but if I try to assemble it using:

meson setup --default-library=static builddir
ninja -C builddir

it always fails with

[2739/3111] Generating Gst-1.0.gir with a custom command (wrapped by meson to set env)
FAILED: Gst-1.0.gir 
.....
ERROR: /path/to/my/folder/gstreamer/gstmacos.h
: Invalid filelist entry-no such file or directory

The file IS present in the ../gstreamer/gst folder, but not in the parent by itself, and even copying the file to the parent doesn’t seem to work.
I would be very thankful for any help or pointers to a solution :blush:

Disabling introspection with --introspection=disabled fixed my issue