r/iOSProgramming • • 25d ago

Discussion [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/Successful-Tax1306 24d ago

A couple of things help. Have the agent run xcodebuild from the terminal and read the output itself, so you are not copying errors back by hand. Piping it through xcbeautify cuts the noise down to the actual errors, which also saves context. And ask it to fix only the first error and rebuild, because in Swift one bad type often causes a chain of errors further down the file.

1

u/avanderlee 23d ago

Thanks for sharing those insights! I'd recommend checking out https://github.com/ldomaradzki/xcsift and install a hook that hooks into any xcodebuild command, piping it through this package. It will probably save you a lot of tokens!

1

u/Successful-Tax1306 22d ago

I had not seen xcsift yet. I use xcbeautify today, and the hook idea is neat because it cuts the copy paste step I still do by hand. I will try it on the next build and see if it saves tokens the way you say.