-
Notifications
You must be signed in to change notification settings - Fork 743
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
apollo-ios-cli mock code generation fails for string arrays #3130
Comments
Thanks for the bug report @Kn3cht. I believe we have a fix for this already in #3120 which is merged into |
@calvincestari Thx for the fast reply. |
I am having the same issue. For me, the last working version of Apollo is 1.1.2 as a result of issues with mock generation. |
Thanks for the additional reports and use cases, we will look into this as soon as we can. |
The fix for this has been merged into main and will go out with the next patch release. If you would like to verify this fixes the issue for you can try pointing your dependency to |
I've pointed to main and still seeing an error similar to #3130 (comment) ![]() on the line
Enum looks like
|
@cswelin Just to verify, after pointing to |
ah shoot, I missed the codegen package dependencies to point to main, that fixed it thank you. |
Summary
I tried out the code generation for mock objects and stubled upon an issue related to the
_setList
invocation of the initializer of the generatedMockObjects
.For all of those invocations I'm getting the compiler error
I alreay read through this related issue: https://github.com/apollographql/apollo-ios/issues/3023. However in my case it even fails for string arrays.
Any help / workarounds for the meantime are appreciated.
Version
v1.3.1
Steps to reproduce the behavior
Example fragment
Generated:
iOS Version: 15
Xcode Version: 14.3.1
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: