You've probably seen this error message "building for macOS-x86_64 but attempting to link with file built for macOS-arm64" and are stumped and complain about whatever library you are linking against. Read that message over and over and you might realize your mistake. No, it is not the libraries fault and may not even be your fault, but you have to figure out how to fix it.
The error message is very straightforward. DO NOT BUILD OR LINK X86 APPS OR LIBS USING ARM64 LIBRARIES. YOU CANNOT MIX ARCHITECTURES.
That's as straightforward as you are going to get it.