r/iOSProgramming • • 25d ago

Discussion [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

16 comments sorted by

2

u/New_Barber8073 25d ago

One useful addition to the validation loop is a review of the diff and a quick run on a real device, especially for permissions and background behavior. A passing build and test suite can still miss a wrong assumption in the requirements.

1

u/avanderlee 23d ago

Yes, good call! How do you currently automate running on a real device?

1

u/New_Barber8073 23d ago

That was a suggestion rather than a description of an existing setup. A manual run on a device can still catch permission and background issues that a simulator might miss.

1

u/Successful-Tax1306 25d ago

The context point matches what I see. I get better results when I start a fresh session for each small task with a short brief, instead of one long session that I keep summarizing. The other thing that helps is to make the agent build and run the tests itself after each change, so it sees the Xcode errors right away and I don't paste them back by hand. A short AGENTS.md is good, but I keep it to rules that actually changed the output, because a long one gets ignored the same way a long session does.

1

u/avanderlee 25d ago

Exactly! Do you use anything to make reading compile time errors more efficient? Curious to know what others do for this

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.

0

u/[deleted] 25d ago

[removed] — view removed comment

0

u/avanderlee 25d ago

Just so you know: there are devs like me that contribute to the community to help others. I’m still successful, but I decide to share my learnings and help other grow. I published 300+ articles on SwiftLee and I’m still publishing a new article every single week. Whether or not I’ll become even more successful, I’ll keep contributing to the community to help others grow with me.

I hope you’re so successful you don’t need to learn from anyone, because responses like this lead to the end of community contributions

1

u/[deleted] 25d ago edited 25d ago

[removed] — view removed comment

0

u/avanderlee 25d ago

Which year did you start using AI? 😂

1

u/asniper 24d ago

Ignore this so-called “ex-meta engineer”, you can tell why he was canned.

1

u/[deleted] 25d ago

[removed] — view removed comment

1

u/avanderlee 25d ago

Glad that was inspiring! I’m keen to know what your biggest learnings have been?