Reply to Weird linker error: "building for macOS-x86_64 but attempting to link with file built for macOS-x86_64" Maybe it is caused by something like -mmacosx-version-min, check my post here. Developer Tools & Services Xcode Jan ’22