-
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
circular header inclusion problem in ObjC version pod? #4301
Comments
They are all |
Yes, I package several pods into one. I don't know how to describe it in detail. I know Clang will only load header once if it load through Defining By process of elimination, I think circular header inclusion may cause some internal error when Clang parsing module. Also I need more testing, will update this issue if I have any process. |
@thomasvl I test with a demo project. It seem circular inclusion will actually cause module parsing problem. Xcode raise error |
no response? |
Sorry, I don't think any of us that work on Apple platforms has gotten a chance to dig into this more and other things we work on have been higher priority. My thought is since the pod has been around for a while without this coming up, it likely is specific to your setup and less likely to be a general problem. The issue is open so if other people run into it they can also chime in and anyone looking to contribute could try looking at it also. |
Thanks. |
Cut down on what is imported into the generated .pbobjc.h files to only what is really needed. This should help compile times a little by not making clang go fetch headers that aren't really needed. BREAKING CHANGE: For anyone that only ever included .pbobjc.h files, but then expected to be able to access some less common things like UnknownFields, Descriptor based field access, etc. The code using those features needs to include the specific GPB headers needed or just include GPBProtocolBuffers.h. This also resolves some issues with include orders around the the WKTs. Fixes protocolbuffers#4301 Fixes protocolbuffers#4403
Seems there is a circular header inclusion problem:
It can compile through
pod 'Protobuf'
, but if I pre build several pods, include this pod, then combine them into one static library, wrap and produce an final static core.framework with custommodule.modulemap
, it can not work. Xcode raise two errorcould not build module core
andcannot find interface declaration for 'GPBAny'
.module.modulemap:
The text was updated successfully, but these errors were encountered: