Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using OpenSSL cocoa pod in iOS project

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 file not found

But I was able to command + click to jump to the bio.h

The OpenSSL pod is installed successfully and my PodFile is like below

platform :ios, '9.0'
use_frameworks!

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

using Xcode 7.2

Edit

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

like image 430
Raymond Avatar asked Oct 19 '22 18:10

Raymond


1 Answers

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)

It worked for me on Xcode7.2. Try this.

like image 195
Aamir Avatar answered Oct 28 '22 19:10

Aamir