首页 > 代码库 > xcode8 模拟器编译webrtc找不到openssl

xcode8 模拟器编译webrtc找不到openssl

下载最新版openssl

https://www.openssl.org/source/


安装

  • ./Configure darwin64-x86_64-cc

  • make

  • make test

  • sudo make install


whichlydeMacBook-Air:~ wanyu$ which openssl

/usr/local/bin/openssl

lydeMacBook-Air:~ wanyu$ /usr/local/bin/openssl version

OpenSSL 1.1.0e  16 Feb 2017



其实只需要下载解压,找到 include/openssl 目录,copy到

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include


xcode8 模拟器编译webrtc找不到openssl