Web3Auth / single-factor-auth-flutter

MIT License
2 stars 3 forks source link

Unable to run/build in iOS when using along with `cloud_firestore` #4

Closed samyakb-work closed 11 months ago

samyakb-work commented 11 months ago

Hey Devs,

I am facing an issue while using your package along with cloud_firestore. This is working just fine in Android, but facing the issue in iOS.

In iOS, single_factor_auth_flutter depends on OpenSSL whereas cloud_firestore depends on BoringSSL (BoringSSL is a fork of OpenSSL that is designed to meet Google's needs).

When using both the packages simultaneously, BoringSSL is tampering with OpenSSL files, which is manipulating it's header files.

As a result we are getting the following error while running for iOS:

Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'openssl_grpc/base.h' file not found
/Users/cumulations/Desktop/flutter_apps/w3a_spm_issue_demo/ios/Pods/BoringSSL-GRPC/src/include/openssl/aes.h:51:9

Here is a minimal reproducible example. In this, I have just added cloud_firestore and single_factor_auth_flutter and trying to build for iOS.

Here are some system info:

samyakb-work commented 11 months ago

Have opened an issue under cloud_firestore repo as well.

samyakb-work commented 11 months ago

From flutterfire/cloud_firestore/issue#12032:

The plugin (single_factor_auth_flutter) seems to be importing an ambiguous Base64.h and picking up the one from the BoringSSL install.

This might help :)

grvgoel81 commented 11 months ago

This is the issue assciated with cloud_firestore sdk in iOS. Attaching some post relates to it:

https://stackoverflow.com/questions/67822031/fatal-error-openssl-x509-h-file-not-found-in-flutter-ios-build-after-integrat https://stackoverflow.com/questions/59128847/xcode-grpc-core-error-openssl-grpc-ssl-h-file-not-found https://stackoverflow.com/questions/50111556/openssl-base-h-file-not-found-firestore https://github.com/CocoaPods/CocoaPods/issues/10772 https://github.com/firebase/firebase-ios-sdk/issues/4007