hohl / MIHCrypto

OpenSSL wrapper for Objective-C [cryptography]
MIT License
341 stars 68 forks source link

'openssl/evp.h' file not found #54

Closed maxisme closed 6 years ago

maxisme commented 6 years ago

I am getting the error:

'openssl/evp.h' file not found

any idea why it is not there??

maxisme commented 6 years ago

All files in openssl cannot be found. I am file sharing from my MBP to my desktop I think it must be to do with the search paths but they all seem fine.

It works fine if I copy the files locally and also if I run on the MBP.

hohl commented 6 years ago

How did you install MIHCrypto and OpenSSL? Via CocoaPods? The build target version shouldn‘t matter, as long it is above 10.7.

maxisme commented 6 years ago

wow thanks for the fast reply. Yes CocoaPods.

maxisme commented 6 years ago

in MIHCrypto you import OpenSSL-Universal like #import <openssl/*> which seems weird?

hohl commented 6 years ago

Ok, I didn‘t expect that. It sounds like OpenSSL isn‘t setup as a dependency. But CocoaPods does all that for you. So there really shouldn’t be anything you could have done wrong.

Where there any errors when adding the dependcy? Maybe you could try removing/adding the MIHCrypto dependency (to reinstall it).

hohl commented 6 years ago

Why is that wired? MIHCrypto is a wrapper for Objective-C build around OpenSSL. That‘s why it also needs OpenSSL as a dependcy. But as said before, CocoaPods setups all the dependencies for you.

maxisme commented 6 years ago

god that is awkward. Reinstalled and now working. Thank you

hohl commented 6 years ago

Glad you resolved it.