[ad_1]
In a pattern app that I’ve created, have used the openssl lib utilizing module map.
Following is the construction of module.modulemap file.
framework module TestApp {
umbrella header "TestApp.h"
export *
module * { export * }
header "opensslv.h"
header "x509.h"
header "pkcs12.h"
header "pem.h"
}
Other than that, I’ve additionally added embody & lib folders to my venture.
This method works completely high quality for the pattern swift app. Supply code compiles and the openssl apis are uncovered to swift.
Now comes the precise query. When I’m making a swift framework and following the above course of of making module map & including embody & lib folder to the venture construction.
I get an error on this line of “pkcs12.h”.
embody <openssl/bio.h>
‘openssl/bio.h’ file not discovered’
I’ve added the Import paths, Header Search Paths in construct settings.
Because the OpenSSL is C primarily based library, It doesn’t compile for the swift framework.
The bridging header can also be not working for the swift framework.
Can somebody assist me right here or perceive the higher strategy to embody the OpenSSL library for swift framework?
[ad_2]
