I have two apps in which I have fixed warnings on Sendable, however there's one app where I did not and it looks like the rent's come due with Xcode 26.0, as I am getting over 100 warnings about Sendable. On a lark, I let the AI work on the warnings. There were so many that I ran out of free ChatGPT time and had to wait 24 hours. But today I cleared every remaining warning, but did the app still work? I figured I'd have to trash this code and do it by hand. But to my surprise, the app is working properly so far. More testing needs to be done and I need to dig into the code to make sure it's right, but so far, so good.
Used Xcode AI to Clear 100+ Sendable Warnings
I've been looking at the AI generated code and comparing to the code I wrote for the other apps. And I am confused. The AI generated code creates an Item enum and uses the PersistentIdentifier of the PersistentModel, but fetches the PersistentModel array instead of fetching an array of PersistentIdentifiers, which my hand-generated code does. Again, I am confused as to why this works and clears the Sendable warnings.