FredericJacobs / OpenSSL-Pod

Unmaintained - please fork. Email me to take over the CocoaPod
74 stars 112 forks source link

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

Open robb18 opened 6 years ago

robb18 commented 6 years ago

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'

kkkelicheng commented 6 years ago

me too

Ramesik commented 6 years ago

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

sigmundfridge commented 6 years ago

Can confirm. This tiny change fixes the issue

kevinjstewart commented 6 years ago

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