skip to Main Content

I’ve just created an Xcode project for the first time and now I want to
learn the Swift programming language with the help of a Udemy course.
Unfortunately, my files folder on the left side of the Xcode window is shown very differently than in the Udemy tutorial. I will just attach 2 screenshots in the attachment.
For example, in the tutorial, the instructor has a "main.swift" file that he opens, but I don’t have it.

I would be really happy about an answer and help!

With love

enter image description here
Timenter image description here

2

Answers


  1. It looks like when he created a new project he created a Command Line Tool project from the template menu. Generate a new project via Xcode > New > Project > macOS > Command Line Tool instead.

    Login or Signup to reply.
  2. It doesn’t look like they are using SwiftUI. Try this:

    File -> New -> Swift Package

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search