OpenSSL-Pod
OpenSSL-Pod copied to clipboard
error: in auto-import: failed to get module from AST context:
Install seems to be working fine, but I can no longer view variables in the debugger:
(lldb) po self warning: Swift error in module Spoiler Alert Food Safety. Debug info from this module will be unavailable in the debugger.
error: in auto-import: failed to get module 'Spoiler_Alert_Food_Safety' from AST context: /Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Spoiler Alert Food Safety-Bridging-Header.h:8:9: note: in file included from /Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Spoiler Alert Food Safety-Bridging-Header.h:8: #import <openssl/x509.h> ^
/Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Pods/Headers/Public/OpenSSL/openssl/x509.h:96:13: note: in file included from /Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Pods/Headers/Public/OpenSSL/openssl/x509.h:96:
include <openssl/rsa.h>
^
error: /Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Pods/Headers/Public/OpenSSL/openssl/rsa.h:96:51: error: expected ')' int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/complex.h:42:11: note: expanded from macro 'I' #define I _Complex_I ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/complex.h:40:21: note: expanded from macro '_Complex_I' #define _Complex_I (extension 1.0iF) ^
/Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Pods/Headers/Public/OpenSSL/openssl/rsa.h:96:51: note: to match this '(' int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/complex.h:42:11: note: expanded from macro 'I' #define I _Complex_I ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/complex.h:40:20: note: expanded from macro '_Complex_I' #define _Complex_I (extension 1.0iF) ^
error: failed to import bridging header '/Development/Spoiler-Alert-Food-Safety/Spoiler Alert Food Safety/Spoiler Alert Food Safety-Bridging-Header.h'
me too
Small change in rsa.h do the trick
change 96: int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
to 96: int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *Ira, RSA *rsa, BN_CTX *ctx);
Can confirm. This tiny change fixes the issue
Really odd. @Ramesik Thanks so much for finding this fix.