When I run mdfind -name libc++ the following list appears:
2024-03-12 13:09:56.049 mdfind[5473:151657] [UserQueryParser] Loading keywords and predicates for locale "en_AU"
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++experimental.a
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++abi.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++abi.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++experimental.a
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libc++abi.tbd
I used the following command 'ls /usr/local/lib/libc++.1.dylib' to locate it, I get the result:
/usr/local/lib/libc++.1.dylib
However if I use this command 'ls /usr/lib/libc++.1.dylib', I get this result:
ls: /usr/lib/libc++.1.dylib: No such file or directory