krzyzanowskim / OpenSSL

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

Compile error on OpenSSL #217

Closed ajanuar closed 4 months ago

ajanuar commented 4 months ago

Not sure if is related to this library, but the error message points to OpenSSL. Can you suggest what can we do? thanks!

https://github.com/margelo/react-native-quick-crypto/issues/361

error:

/Users/pintu/Library/Developer/Xcode/DerivedData/apps-eroakhqxnpkmmubovtkzvvsigqfl/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL-Universal/OpenSSL.framework/Headers/e_os2.h:234:12: error: include of non-modular header inside framework module 'OpenSSL.e_os2': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/inttypes.h' [-Werror,-Wnon-modular-include-in-framework-module]
#  include <inttypes.h>
krzyzanowskim commented 4 months ago

it looks like the culprit is the same as how <inttypes.h> works in OpenSSL https://github.com/krzyzanowskim/OpenSSL/pull/215#issuecomment-2200778228

technically it should work, but practically the Xcode build gets confused often. setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES should help with build.

ajanuar commented 4 months ago

hey @krzyzanowskim , it works now. thanks!

ishkash69 commented 4 months ago

@ajanuar not worked for me.

MehmoodArib commented 4 months ago

Hi , Open podfile.lock and set pod version

OpenSSL-Universal (1.1.2200) I was having the same issue with OpenSSL-Universal (3.1.5006)