I have built a dylib written in c++ on mac OS 12(moneterey) using xcode 14.2 that needs some symbols from libc++.1.dylib. The dylib built works completely fine on ventura and monterey but crashes on bigsur and catalina.
It says symbol not found as :
Symbol not found: __ZNSt3__113basic_filebufIcNS_11char_traitsIcEEEC1Ev
Expected in: /usr/lib/libc++.1.dylib
I have already set the minimum deployment target as 10.15 and also the build command has the target set with 10.15 as below:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target arm64-apple-macos10.15 -fmessage-length=0