Can't link directly to libcrypto

I noticed one of my targets, which links directly to libcrypto, fails to link on Xcode 8 because the macOS 12 SDK doesn't, I guess, include libcrypto.


It looks like libcrypto on macOS 12 is still present in /usr/lib/


In Xcode 8 I can just remove the libcrypto library dependency, and it all seems to link fine. But will this keep working if I'm building the project on Xcode 7 with an earlier SDK?

Replies

if you compile it for a lower target with XCode 7 I think it should work. If the lib is there and you compile for 10.12 it should run with no problems. Unless there are major changes between the libcrypto in 10.11 and 10.12 (I doubt this).

Did you ever find a solution for this problem?


I am stuck with the same problem. Even if I remove -lcrypto and add the dylib directly I get library not found for -lcrypto.0.9.8


Any solutions or tips?


All the best

Christoph

I also would like a solution to this problem.