I've been dumping everything into Xcode and just asking it to create the edits in chunks that I can drop in manually, but it's harder to debug if it can't see everything. It seems to accept screenshots of the Xcode errors and produce corrected segments well.
Xcode AI Assistance: Debugging and Error Correction with Screenshots
By
–