Search code examples
objective-cxcodemacosopensslxcode8

Xcode 8 and "ld: library not found for -lcrypto"


When I try to build my project, I get the following issue.

ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Before the latest Xcode update, I was using OpenSSL via CocoaPods just fine. After the latest OS and Xcode update, I can't seem to be able to build OpenSSL.

Any ideas how to solve this? On Xcode 7 everything was working ok.


Solution

  • Found a solution, turns out, I needed to update the CocoaPods as well as my Pods.

    For Mac OS X: pod 'OpenSSL-OSX'

    Other versions of OpenSSL do not work.