-
Notifications
You must be signed in to change notification settings - Fork 43
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
Generated code for Protobuf failing to build #455
Comments
@sqcsabbey thanks for the report. What is the definition of (We added bool support in #310.) |
@dcharkes, thanks for responding to my report so quickly. Here's BOOL1's definition:
|
We can't have a |
Here's the header file for it, with this typedef on line 42:
Edit: that's an Obj-C header, and from the matching comments in the ffigen'd code and this header file, I believe this is what's being used. |
/**
* Verifies that a given value can be represented by an enum type.
* */
typedef BOOL (*GPBEnumValidationFunc)(int32_t); This is using I'd hope the typedef would simply be this from https://developer.apple.com/documentation/objectivec/bool: typedef bool BOOL; Can you check you have got the right include paths and there are no errors on the FFIgen output? |
I did have an error in the FFIgen output; the iOS Foundation header file wasn't found; adding this to my ffigen.yaml got it working for iOS:
|
Alright 👌 Please let us know if you have further issues. |
* Work around analyzer bug for FfiNatives * another pointer arg
I'm getting the error message:
For the ffigen'd code:
I'm not using Protobuf directly, but my Podfile.lock uses
Protobuf (3.23.0)
, and I'm trying to get this working against Dart 3.0.0 and using ffigen 8.0.2 (whatever was generated was working for me before upgrading to Dart 3 and ffigen 8).Any tips to help me resolve this?
Thanks!
The text was updated successfully, but these errors were encountered: