r/iOSDevelopment • u/infinitetrooper • Jun 30 '25
Been using Cursor with AI to build SwiftUI apps and found it surprisingly productive
I have been building native iOS apps for a while, mostly using SwiftUI. Recently started using Cursor as my main IDE with AI support and found it surprisingly helpful for speeding up the workflow.
This is what I have set up:
Added Apple documentation and Human Interface Guidelines inside Cursor so the AI has proper context
Defined rules for state management, MVVM architecture, and navigation structure
Cursor generates the code and builds it automatically in the background using Xcode’s command line tools
If something breaks, it tries to fix the issue and rebuild on its own
I keep Xcode open just to run the app on a simulator or physical device, no code changes are made there
It is not perfect but I was able to build a couple of apps much faster than usual using this setup.
If anyone wants more detail, I wrote up the full process and shared the rules I use here:
https://www.infinitetrooper.com/build-ios-apps-ai-cursor/
1
u/1supercooldude Jun 30 '25
Does cursor actually do a good job at pulling the apple docs from what I’ve seen because they’re nested so much it doesn’t really do a good job or only pull that first page
1
1
u/Saladin1204 Jun 30 '25
How do you get cursor to run the build and fix errors automatically?