https://github.com/YouXianMing

编译并导入OpenSSL

编译并导入OpenSSL

 

1. 首先,需要运行脚本生成OpenSSL库,参考 https://github.com/x2on/OpenSSL-for-iPhone 示例

 

 

2. 运行脚本生成静态库

下一步我们会用到这两个文件夹中的内容

 

3. 新建一个文件夹叫 openssl ,然后将 OpenSSL-for-iPhone 项目中的 FSOpenSSL.h/m 文件拖到文件夹中,将生成的 include 以及 lib 文件夹也拖到 openssl 文件夹中.

结构如下图所示

 

4. 将整个文件夹 openssl 拖到新建的项目当中

 

5. 在 Header Search Paths 中添加以下内容 "$(SRCROOT)/$(PROJECT_NAME)/openssl/include"

 

6. 在 Library Search Paths 中添加以下内容 "$(SRCROOT)/$(PROJECT_NAME)/openssl/lib"

 

7. 编译运行,结束

 

posted @ 2015-05-21 22:05  YouXianMing  阅读(1413)  评论(0编辑  收藏  举报