krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
907 stars 334 forks source link

Could not build Objective-C module 'OpenSSL' #137

Closed icesco closed 2 years ago

icesco commented 2 years ago

Hi, I'm integrating the OpenSSL (v1.1.1300) SPM package into an iOS app. When I try to compile the app, Xcode shows two errors:

  1. Could not build Objective-C module 'OpenSSL';
  2. _'openssl/eos2.h' file not found, in "ssl.h" which I think is the cause of the first error.

How can I solve it ? I also tried to use the pre-compiled XCframework, but I face the same issue. Thanks.

krzyzanowskim commented 2 years ago

the file is there https://github.com/krzyzanowskim/OpenSSL/blob/master/Frameworks/iphoneos/OpenSSL.framework/Headers/e_os2.h in headers. May it be that you use case sensitive filesystem by any chance?

icesco commented 2 years ago

Thanks for the quick response! I actually am using a case sensitive filesystem, is this the reason whiy I'm having this issue ?

krzyzanowskim commented 2 years ago

yea, "known issue" https://github.com/krzyzanowskim/OpenSSL/issues/117 I didn't work out yet.

I'm closing this ticket. Plase follow the other one.