Swift iOS programming getting errors in Cursor

Just doing the simplest example and getting errors in Cursor. Errors start with whats in the screenshot, but also doesn’t appear to find connection in the project.

  1. Created default starter iOS App in Xcode
  2. Open the project in Cursor
  3. Swift Extension is installed.
  4. Has errors referencing SourceKit.

I can’t get the simplest example going. It has to be something in the environment, but I have tried go fresh a few times. I have seen many fancy tutorial about getting it to build and run and debug in Cursor. Not trying to do anything of that, just trying to use Cursor as a swift code editor at this point. It is indexing over to xcode with no errors over there.

Ok I have found that the errors start coming once I install the Swift Extension. Which makes sense. It has to be something with the configuration of the extension or workspace. After I install the extension, it has this issue with @main, and it is unable to pull in multiple files into scope. For example, Item.swift is in a swift file as part of the project, but when accessing from the …App.swift. it says Item is not in scope of SourceKit? obviously new to swift and terrible at debugging environments, workspaces and tooling.

For the record here are all the errors I get with just the starter iOS app created out of xcode opened in Cursor and after installing swift extension