hohl / MIHCrypto

OpenSSL wrapper for Objective-C [cryptography]
MIT License
340 stars 66 forks source link

CocoaPods with use_frameworks! option #40

Open hdoria opened 8 years ago

hdoria commented 8 years ago

I cannot get CocoaPods to install MIHCrypto with the "use_frameworks!" option in my Podfile.

!] The 'Pods' target has transitive dependencies that include static binaries: (Pods/OpenSSL-Universal/lib-ios/libcrypto.a and Pods/OpenSSL-Universal/lib-ios/libssl.a)

Are there any workarounds? I know I can remove the use_frameworks! option, but I need it for other target dependencies using Swift.

Thanks!

hohl commented 8 years ago

I'm sorry, but there isn't much I can do for you on that issue. The issue is related to https://github.com/krzyzanowskim/OpenSSL/issues/22.

EDIT: Sorry, just seen. The referenced issue is opened by yours anyway.

omerlh commented 7 years ago

See this issue: cossacklabs/themis#127. After struggling with cococapod, I managed to solve compilation issues (after fixing your podspec according to what suggested in method 1 in that issue). Now I have another issue (Include of non-modular header inside framework module 'MIHCrypto.MIHRSAPrivateKey', I have couple of those because of openssl). After solving this, I can try to create a PR if you'd like.

hohl commented 7 years ago

This PR would be very welcome!

omerlh commented 7 years ago

Create hohl/MIHCrypto#48. As I wrote in the PR, I solved only the original problem, as I still have the non-modular error. For now, I just copied your code to our project and hope this will solve it. Hope to have more time in the future to investigate this in depth.