Compile error on OpenSSL
ajanuar opened this issue · 4 comments
ajanuar commented
Not sure if is related to this library, but the error message points to OpenSSL. Can you suggest what can we do? thanks!
margelo/react-native-quick-crypto#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
it looks like the culprit is the same as how <inttypes.h>
works in OpenSSL #215 (comment)
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
hey @krzyzanowskim , it works now. thanks!
MehmoodArib commented
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)