在iOS项目中使用OpenSSL可可豆 [英] Using OpenSSL cocoa pod in iOS project

查看:170
本文介绍了在iOS项目中使用OpenSSL可可豆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将OpenSSL pod头文件导入我的iOS项目。但是,Xcode找不到 OpenSSL 头。它说

I'm trying to import OpenSSL pod header files into my iOS project. However, Xcode cannot find OpenSSL header. It says

#import <OpenSSL/bio.h>

OpenSSL / bio.h 文件未找到

但我能够命令+点击跳转到 bio.h

已成功安装,我的 PodFile 如下

platform :ios, '9.0'
use_frameworks!

target 'MyProject' do
pod 'OpenSSL', '~> 1.0'
end

使用Xcode 7.2

using Xcode 7.2

我已尝试清除,构建和删除 Derived Data 文件夹,但仍然无法正常工作。 / p>

I have tried clean, build and delete Derived Data folder but still not working.

推荐答案

1)我已创建示例项目

2)添加了 pod'OpenSSL ','〜> 1.0'

3)关闭项目,然后打开Project_Name.xcworkspace

4)使用 #import< OpenSSL / bio。 h>

5) Command + Shift + K (用于清洁项目)

6) Command + Shift + B (用于构建)

1) I have created sample project
2) Added pod 'OpenSSL', '~> 1.0'
3) Closed project and then opened Project_Name.xcworkspace
4) used #import <OpenSSL/bio.h>
5) Command + Shift + K (for cleaning project)
6) Command + Shift + B (for building it)

它适用于 Xcode7 .2 。试试这个。

这篇关于在iOS项目中使用OpenSSL可可豆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆