Question about splitting swift code into smaller files

I had cursor separate a large swift file
Into various files that locigcally make sense. But Xcode wouldn’t compile them together as a functioning app. Is there anything else I need to do?

Xcode shouldn’t have a problem with them, it depends on the compile errors. It’s fairly common practice to break up large files into +extension.swift files for maintainability, and the compiler doesn’t like complex expressions, it will complain and fail to compile. Feed the compile errors to Claude.

1 Like

I find it funny that this isnt ones first GOTO 10.

I lirterally take whole repos and reddit threads and these posts here and throw them at composer’s context and ask it questions all the time.

I keep a Cursor Session open to a folder cursor\scratchpad\ and thats where I ask all my random agent questions…

and have it produce one_off


Do others?

Haha, yeah. Pretty much anything goes wrong I copy-paste or screen cap and feed it to Claude though lately (v 0.44.11) he’s been a bit overzealous with hasty conclusions, so I’ve been in the habit of asking him to double check… :upside_down_face: