Is it even possible to build an iOS app with Cursor?

Has anyone succeeded in creating an iOS application with classes in multiple files that reference each other. Whenever I do this I get the message:

Can’t find ‘the_class’ in scope SourceKit

Seems to me that with this limitation Cursor cannot be used to develop any iOS application that’s more than a basic one file todo list.

If you have built an iOS application, then how have you got over this problem with using Cursor?

Hoping someone out there has built an iOS application. I am starting to think the only ones that have built an app are the YouTube influencers. When I try then there are problems with referencing classes in different files and problems importing the packages. Has anyone figured out how to resolve these VSCODE problems.

I have used cursor to build an apple watch app which is now on the market.

Did you start the project in Xcode first?

iOS is definitely doable, it takes a lot of copying/pasting errors from xcode into cursor, then letting the AI do its thing, then re-running in xcode, etc.

@realdarthmonk

Hello and thanks for replying. I have code that was created with Xcode, but then when I try to use Cursor I get many reference errors:

Cursor or other code IDE or VSCode:

Xcode:

I have many cases where I get the message that it cannot find another class, and no amount of changes that Cursor makes have been able to help me with this.

I wonder if you came across a similar problem.

Are you training in Docs in the Settings/Features page or from the composer, adding to the Rules for AI section in the Settings/General page, using @Codebase when needed, and specifying in your prompts what to edit etc? You need to do all these things to get the best out of Cursor, then she flies lol. I found it fine in Xcode, right click a few errors in Xcode terminal and paste back in to composer, it does well.

I’ve built and shipped a couple iOS apps that are live in the app store using Cursor. I do use Xcode concurrently though so it’s not 100% Cursor but a lot of it is. You can absolutely build full iOS apps with it. I install Swift and swiftlint extensions.

I am able to click to jump to functions or class definitions in Cursor when I need to. But it does have issues with import modules.

I verify in Xcode and as long as it compiles I tell the agent to ignore those types of linter errors. I have a Cursor rule to “disregard import errors if the code looks correct, that it’s a limitation of vs-code” and it usually doesn’t bother to iterate on them.

2 Likes

This is a good article about setting Cursor up to work best with XCode (or replace it entirely!)

Currently busy with an app in Flutter with Dart. Will let you know if I succeed!