-
Notifications
You must be signed in to change notification settings - Fork 737
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
XCode 14.3 Beta reveals hundreds of "Non-sendable" type warnings related to Apollo-generated Types #2835
Comments
Hi @mdhornet90, I haven't tried the 14.3 beta and I don't think @AnthonyMDev has either. Are you explicitly using Swift Concurrency functions or do these warnings appear even without using the new concurrency features in a project? |
Generally I'm noticing these kinds of warnings in explicit async contexts. Some examples:
|
I've downloaded Xcode 14.3 and built both Apollo iOS and a quick sample application that uses it as a dependency but without any Swift Concurrency in it. In both builds there are no concurrency related warnings, so I think this is definitely only appearing in apps that use Xcode 14.3 + Apollo iOS + Swift Concurrency. We've had issues before with the |
I think we should consider whether our generated models fulfill the requirements to be safely marked as |
From the Xcode Beta Release Notes:
So, these warnings are not meant to show up (because not all the features around Sendable checks have been implemented in Swift) and will probably disappear before the final 14.3 release. |
Note to self: Don't think we need a config option for this it should just always output the annotation but make sure it works correctly with iOS 12, which is the minimum we version we support and is a version before Swift Concurrency backport. |
@mdhornet90 are the warnings still being raised in the official 14.3 GA release given @kaybutter's comments at #2835 (comment). |
Closed due to inactivity |
Summary
After upgrading to the XCode 14.3 Beta, I see this sort of warning hundreds of times during compilation:
Is there anything specific to the setup I have to change to make sure these generated types conform to
Sendable
or is this in active development against the XCode Beta? Let me know if you need more infoVersion
1.0.7
Steps to reproduce the behavior
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: