I would like to use https://github.com/krzyzanowskim/CryptoSwift on my swift project (my swift is 2.1 and Xcode 7.1.1). After I had completed the installation instruction (run build.sh then add the framework file to my project), I still cannot import CryptoSwift framework. Please help.
Asked
Active
Viewed 1,077 times
1
-
`import CryptoSwift` this is the framework header, what the error u faced – Anbu.Karthik Nov 14 '15 at 06:49
-
yes. I have no idea how to fix it – Tommy Liu Nov 14 '15 at 10:50
-
If you want either good performance (CryptoSwift is 500 to 1000 times slower than Common Crypto) or security (CryptoSwift is a new implementation and is not well vetted) do not use CryptoSwift. Common Crypto is supplied by Apple as part of the Security.framework. If you want a truly secure well vetted performant library use [RNCryptor](https://github.com/RNCryptor/RNCryptor) which supports multiple languages and platforms. – zaph Nov 14 '15 at 13:37
2 Answers
3
Add the CryptoSwift.framework
to the Embedded Binaries
section, instead of the Linked Frameworks and Libraries
section. Xcode will then include it in the Linked Frameworks and Libraries
section as well.

Dave Wood
- 13,143
- 2
- 59
- 67
-
But of course the tradeoff is an extremely slow and insecure library. Why would that be a desirable choice? – zaph Nov 14 '15 at 13:37
-
The question was how to get it to work, not whether it was a good or secure choice. – Dave Wood Nov 14 '15 at 16:57
-
Note, that is why I did not down-vote. But a good security choice is important, right? IMO we have an obligation to point out poor security practices. – zaph Nov 14 '15 at 17:24
0
Thank you all to answer. I had installed the program by using Cocoapods. Issue is solved

Tommy Liu
- 239
- 4
- 13