Reputation: 36013
I have followed all tutorials on the web to do this. Everything works fine, up to the point I add this line on a class:
#import <openssl/pkcs7.h>
Then I have this error 'openssl/pkcs7.h' file not found.
How bad can Xcode be? I drag every file to Xcode and the files cannot be found?
This is the structure I have now:
How do I fill the search paths, library search paths, whatever to make this work?
Upvotes: 4
Views: 6587
Reputation: 4145
Make sure you have set the paths:
In the Header Search Path
I use ${SRCROOT}/macOS
and set it to Recursive
. Why not specify the directory and non Recursive
? I searched for bugs related to XCode 11
and Header Search Path
. If I set the full path it did not work. If I set it to ${SRCROOT}
and recursive it failed. Odd?
The same Library Search Path
- the path to the .a
files - you could just say ${SRCROOT}
but this can get you in trouble if you have multuple .a
files for different architectures in the same project. This threw up linking errors for me so I used ${SRCROOT}/macOS
.
Upvotes: 1
Reputation: 2120
The easiest solution would be to use CocoaPods - there is an OpenSSL pod...
Upvotes: 1