-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Add header search paths to protobuf-c++ spec #10024
Add header search paths to protobuf-c++ spec #10024
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
9133543
to
a5a71fb
Compare
Core protobuf-team manages this podspec, so I'm not sure if this would be a good addition or not. |
Thanks for the contribution! Can you explain why this file needs the header argument but |
Thanks for reviewing @deannagarcia. I think it is to do with the way headers are imported in obj-c files (obj-c runtime is shipped using Protobuf.podspec) vs c++ files (c++ runtime is shipped using Protobuf-C++.podspec). Protobuf.podspec - Protobuf-C++.podspec - |
Thanks for the explanation! Once the tests pass, I will get this merged. |
Hi @deannagarcia, do you have an ETA on when this commit would be picked up for the next release, please? |
Hi @deannagarcia, sorry for tagging you again. I've been waiting quite some time for this fix. Could this be included as part of v21.2 Please? |
Apologies, but this was missed in the v21.2 build. This will have to wait for our next release. |
Hi @esorot, When would the next release be out? Or could I cherry-pick this commit? |
The Problem:
Consuming Protobuf runtime in Swift via "Protobuf-C++ podspec" fails compilation as it isn't able to resolve the header imports.
Solution:
Adding "HEADER_SEARCH_PATHS" to the "pod_target_xcconfig" flag will help "Protobuf-C++" pod discover the required headers.
NOTE:- Current obj-c builds are linting "Protobuf.podspec" and not "Protobuf-C++.podspec", hence they are all green.