You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apollo code-gen does not compile on Xcode 15.3 with concurrency checking set to Strict. static let properties fail to compile with the following error:
Static property 'XXXXX' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
Version
1.9.0
Steps to reproduce the behavior
Generate Swift with Apollo that generates a staticOperationDocument, Interface, Object, or Union
Logs
No response
Anything else?
I was able to get things compiling in my own repo by writing the following extensions:
extensionApolloAPI.OperationDocument:@uncheckedSendable{// This type is immutable and its properties are also immutable.}extensionApolloAPI.Interface:@uncheckedSendable{// This type is immutable and its properties are also immutable.}extensionApolloAPI.Object:@uncheckedSendable{// This type is immutable and its properties are also immutable.}extensionApolloAPI.Union:@uncheckedSendable{// This type is immutable and its properties are also immutable.}
Ideally these types would conform to either Sendable or @unchecked Sendable within the Apollo library. This work is likely related to #3291
The text was updated successfully, but these errors were encountered:
We're going to move #3291 from 2.0 back into 1.x and add it to our current roadmap. Closing this as duplicate. Thank you for the feedback and suggestion!
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Summary
Apollo code-gen does not compile on Xcode 15.3 with concurrency checking set to Strict.
static let
properties fail to compile with the following error:Version
1.9.0
Steps to reproduce the behavior
Generate Swift with Apollo that generates a
static
OperationDocument
,Interface
,Object
, orUnion
Logs
No response
Anything else?
I was able to get things compiling in my own repo by writing the following extensions:
Ideally these types would conform to either
Sendable
or@unchecked Sendable
within the Apollo library. This work is likely related to #3291The text was updated successfully, but these errors were encountered: