Skip to content

fix: Work around swift compiler issue triggered in compileGraphQLResult() - #17

Closed
m4p wants to merge 1 commit into
apollographql:mainfrom
m4p:main
Closed

m4p wants to merge 1 commit into
apollographql:mainfrom
m4p:main

Conversation

@m4p

@m4p m4p commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

I noticed that code generation triggers a swift compiler bug when used in a AsyncParsableCommand. I have identified the issue and provided a workaround. See link and attached crash log for details about the triggered bug. I have verified this fixes the issue by using a fork in my toolchain.

crashlog.txt

How

As the issue is triggered by stack management of async lets, serializing the work via let … = await works around the issue.

@apollo-cla

Copy link
Copy Markdown

@m4p: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@github-actions

Copy link
Copy Markdown
Contributor

We do not accept PRs directly to the 'apollo-ios-codegen' repo. All development is done through the 'apollo-ios-dev' repo, please see the CONTRIBUTING guide for more information.

@github-actions github-actions Bot closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants