mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #342] CocoaPods issue with Firebase and BoringSSL-GRPC (Xcode 12.5) #275
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#275
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ulmentflam on GitHub (Jul 9, 2021).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/342
Originally assigned to: @jmcnamara on GitHub.
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 updateandpod installfrom the1-10-stablebranch, 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
libxlsxwriteris attempting to use the "md5.h" file fromBoringSSL-GRPCand not the "md5.h" file included in thelibxlsxwriterproject. 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.@jmcnamara commented on GitHub (Jul 9, 2021):
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.
@ulmentflam commented on GitHub (Jul 9, 2021):
@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.
@jmcnamara commented on GitHub (Jul 9, 2021):
Does the order of inclusion have any effect, i.e., if you put libxlsxwriter before borings or vice-versa?
@ulmentflam commented on GitHub (Jul 9, 2021):
Unfortunately not, it seems to always build last for some reason.
@ulmentflam commented on GitHub (Jul 9, 2021):
I even moved the order of inclusion in the
Podfile.lockand that has no effect on the order that the dependencies are installed.@jmcnamara commented on GitHub (Jul 9, 2021):
Just to avoid any ambiguity can you add the modified pod file you are using with the LibXlsxWriterSwiftSample repo.
@ulmentflam commented on GitHub (Jul 9, 2021):
Absolutely
@ulmentflam commented on GitHub (Jul 9, 2021):
@jmcnamara @FrankenApps I believe I have a fix for this issue in PR #343. The header files link correctly if
preserve_pathsis included in the podspec and references the 'third_party' header files.@jmcnamara commented on GitHub (Jul 9, 2021):
@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:
@ulmentflam commented on GitHub (Jul 9, 2021):
@jmcnamara I updated the order in "Framework Search Paths" and "Header Search Paths" and it resulted in the same build error.
@ulmentflam commented on GitHub (Jul 9, 2021):
@jmcnamara commented on GitHub (Jul 9, 2021):
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.
@ulmentflam commented on GitHub (Jul 9, 2021):
Not a problem!
@jmcnamara commented on GitHub (Jul 9, 2021):
Thanks for the debugging and fix. I've pushed a new release (1.1.0) and new Cocoapod with the fix.
@ulmentflam commented on GitHub (Jul 9, 2021):
You are very welcome! Thanks for your help and getting a release out so quickly!
@adesun2k commented on GitHub (May 13, 2023):
Please any solution yet? Still can't find a way around for XCode/Swift5