New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CocoaPods issue with Firebase and BoringSSL-GRPC (Xcode 12.5) #342
Comments
Could you create a small project that demonstrates this issue. Maybe based on https://github.com/FrankenApps/LibXlsxWriterSwiftSample Also, is it possible to re-arrange the order of pod usage/compilation so that libxlsxwriter is included before BoringSSL. Adding @FrankenApps in case he has any suggestions. |
@jmcnamara I replicated the issue here https://github.com/ulmentflam/LibXlsxWriterSwiftSample just adding 'BoringSSL-GRPC' to the pod file causes the issue. I didn't have to include all the Firebase dependencies. |
Does the order of inclusion have any effect, i.e., if you put libxlsxwriter before borings or vice-versa? |
Unfortunately not, it seems to always build last for some reason. |
I even moved the order of inclusion in the |
Just to avoid any ambiguity can you add the modified pod file you are using with the LibXlsxWriterSwiftSample repo. |
Absolutely
|
@jmcnamara @FrankenApps I believe I have a fix for this issue in PR #343. The header files link correctly if |
@ulmentflam Thanks for the fix. It looks valid. I was just about to respond to ask if you could change the ordering of the include files within Xcode to see if that would resolve the issue. Could you try that as well to see if works (for the sake of completeness). Change the order in "Framework search paths" and "Header search paths" in Build Settings: |
@jmcnamara I updated the order in "Framework Search Paths" and "Header Search Paths" and it resulted in the same build error. |
Cool. Thanks for checking. I'll merge in your fix. It needs to be squashed since there are some WIP commits in the PR. I'll see if Github can do that cleanly. If not I'll get you to rebase it and resubmit. |
Not a problem! |
Thanks for the debugging and fix. I've pushed a new release (1.1.0) and new Cocoapod with the fix. |
You are very welcome! Thanks for your help and getting a release out so quickly! |
Please any solution yet? Still can't find a way around for XCode/Swift5 |
When building in Xcode 12 and installing the library through CocoaPods I get the error 'openssl_grpc/base.h' file not found. It appears that the libxlsxwriter tries to use the BoringSSL-GRPC md5.h file when both pods are installed. At first I thought it was related to this issue in the CocoaPods repo and issue #337. However, when I ran
pod update
andpod install
from the1-10-stable
branch, the issue persisted. The issue is not present in older versions of the Firebase SDK or when using older versions ofBoringSSL-GRPC
.My thought is that there is still a problem with the header files being symlinked to the wrong place, but the previously mentioned solutions should have fixed that issue.
The logs say:
So
libxlsxwriter
is attempting to use the "md5.h" file fromBoringSSL-GRPC
and not the "md5.h" file included in thelibxlsxwriter
project. This leads me to believe that the headers are still not being linked correctly by CocoPods. Any help on fixing this issue or a better methodology for installing both of these frameworks would be greatly appreciated.The text was updated successfully, but these errors were encountered: