How to statically link OpenSSL with my app in Xcode?

我只是一个虾纸丫 提交于 2019-12-11 01:57:58

问题


I am using a third party code which uses OpenSSL Crypto library. Since OSX 10.7 Apple has deprecated the use of OpenSSL in favor of their own solution.

Since I have no experience in Crypto coding, I cannot port the third party code to use Common Crypto. So to safeguard against the possibility that Apple may later drop OpenSSL, is there a way to statically link it with my app in Xcode?

I added the part 'in Xcode' since I am new to Xcode too, so when you tell me something like 'put flag X' then please also explain from where in Xcode interface I can put that 'flag X'. Thanks for reading this.


回答1:


Finally found a good source.

  1. This blog post contains a lot of links and information - http://programmer-in-paradise.blogspot.com/2011/07/how-to-build-openssl-in-xcode.html
  2. For just following this one, did the trick - https://github.com/sqlcipher/openssl-xcode



回答2:


Here's a brilliant resource on the issue. here . The simplest thing to do is use cocoapods and then follow the rest of the instructions.



来源:https://stackoverflow.com/questions/9342081/how-to-statically-link-openssl-with-my-app-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!