OpenSSL-Pod icon indicating copy to clipboard operation
OpenSSL-Pod copied to clipboard

error: in auto-import: failed to get module from AST context:

Open robb18 opened this issue 7 years ago • 4 comments

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'

robb18 avatar Nov 27 '17 15:11 robb18

me too

kkkelicheng avatar May 08 '18 01:05 kkkelicheng

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);

Ramesik avatar Jul 02 '18 13:07 Ramesik

Can confirm. This tiny change fixes the issue

sigmundfridge avatar Jul 04 '18 15:07 sigmundfridge

Really odd. @Ramesik Thanks so much for finding this fix.

kevinjstewart avatar Jul 28 '18 02:07 kevinjstewart