-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix: Local cache mutation build error in Swift 6 #417
Conversation
✅ Deploy Preview for apollo-ios-docc canceled.
|
✅ Deploy Preview for eclectic-pie-88a2ba canceled.
|
df20428
to
1007b06
Compare
afc0b27
to
2a23da4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a good interim solution to me to get past this issue for Xcode 16 beta builds, agree we should continue to monitor the beta builds to see if this is just a bug in the current beta and can maybe be reverted in the future.
Thanks @BobaFetters. Let's get @AnthonyMDev's opinion too before merging. |
If this compiles and builds now, I'm good with merging it! When I initially did this work, I don't believe it was possible to include a |
This reverts commit 2a23da4.
7a6bb90
to
4af6ea3
Compare
2ba1391
to
ed6b71c
Compare
Yes, this builds with both Xcode 15.4 and Xcode 16 without the setter. |
9b87ee08 fix: Local cache mutation build error in Swift 6 (#417) git-subtree-dir: apollo-ios git-subtree-split: 9b87ee082dfefa4036ce189fdeb5e52b3f952bef
…n Swift 6 git-subtree-dir: apollo-ios git-subtree-mainline: 3497c4a git-subtree-split: 9b87ee082dfefa4036ce189fdeb5e52b3f952bef
fb192097 fix: Local cache mutation build error in Swift 6 (#417) git-subtree-dir: apollo-ios-codegen git-subtree-split: fb1920971dea2158458bd2b1896653edbf934594
… error in Swift 6 git-subtree-dir: apollo-ios-codegen git-subtree-mainline: 571b2ca git-subtree-split: fb1920971dea2158458bd2b1896653edbf934594
Closes apollographql/apollo-ios#3398. Gets Xcode 16 successfully building local cache mutations.
@available
attribute. There is no functional change to the code because the setter was unable to be called anyways. So the only real loss is the convenience message displayed to the user if they did try to mutate the entire fragment instead of properties on the fragment. We could state this explicitly in the local cache mutation documentation if we think that would be helpful instead.I also removed the "CI Tests (Xcode 16.0 Beta)" action that I added for us to manually run our CI suite on Xcode 16.0 beta. This was not as useful as I initially thought because it's catching all the concurrency (This is back but with a reduced test suite that ensures the project can build and run unit tests (not codegen test configuration tests though) with Xcode 16.Sendable
) related issues too which we know are a much more complex problem to resolve.I suggest we continue to monitor the Xcode 16 beta releases and if this turns out to be a beta glitch then we can revert this PR to get back the setter with attribute and users will get the nice warning message again if they try mutate the entire fragment.