Sajjad Raza
Sajjad Raza

Reputation: 31

CryptoSwift and Objective-C

How I can use CryptoSwift to my Objective-C project?

I have an Objective-C project and want to use Encryption Library CryptoSwift for that. I have successfully used the single Swift file into my Objective-C project, but how to use a Swift project as subproject to the parent project that was built in Objective-C.

I tried to use Cocoa pod too but to no avail.

Upvotes: 2

Views: 1055

Answers (1)

Thomm
Thomm

Reputation: 516

You can use Cocoa pods but on the target at the build options you should set Embedded Content Contains Swift Code to YES.

See this tutorial for a detailed description.

Upvotes: 1

Related Questions