I don't know why this only was a problem on macos, but this fixes the release build for me on my macos.