Installare Xcode e creare un progetto
Configurare Xcode e creare un nuovo modello di app SwiftUI.
Installare Xcode e creare un progetto è una lezione SwiftUI Academy gratuita su CoddyKit. Questa è la lezione 1 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento SwiftUI Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso SwiftUI Academy include 4 lezioni in totale.
Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.
Meet Xcode
To build iOS apps you need Xcode, Apple's free app for writing, running, and shipping software. It is your home base for everything SwiftUI. 🛠️
You Need a Mac
Xcode runs only on macOS. You build, preview, and test iOS apps right on your Mac, so a recent macOS version is the one real requirement here.
Get It Free
Open the Mac App Store, search for Xcode, and install it. It is a large download, so grab a coffee while it sets up the iOS tools for you. ☕
First Launch
The first time you open Xcode it installs command line tools and simulators. Let it finish once, and future launches will be quick.
Start a New Project
From the welcome window choose Create a new Xcode project. This wizard scaffolds a complete, runnable app for you in just a few clicks.
Pick the App Template
Under the iOS tab, select the App template. It is the standard starting point for a normal SwiftUI iPhone app.
Name Your App
Enter a Product Name like MyFirstApp. This becomes your app's display name and the name of the project folder Xcode creates.
Choose SwiftUI
Set the Interface option to SwiftUI, not Storyboard. This tells Xcode you want to design your screens with Swift code and live previews.
Save the Project
Pick a folder and click Create. Xcode generates a working app and opens it in the project navigator on the left side of the window.
Find ContentView
In the navigator, open ContentView.swift. This is the file holding your app's first screen, and the place you will edit next.
struct ContentView: View {
var body: some View {
Text("Hello, world!")
}
}Hello, World!
That generated Text view shows the classic Hello, world! message. You already have a real, runnable app before writing a single line yourself. 🎉
Quick Check
When creating the project, which Interface option do you pick for SwiftUI?
Recap
You installed Xcode, created an App project with the SwiftUI interface, and opened ContentView. Your first iOS app is ready to run. 🚀
Domande Frequenti
La lezione «Installare Xcode e creare un progetto» è gratuita?
Sì — il testo completo di «Installare Xcode e creare un progetto» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso SwiftUI Academy, passa a CoddyKit PRO. Il corso SwiftUI Academy include 4 lezioni in totale.
Cosa imparerò in «Installare Xcode e creare un progetto»?
Configurare Xcode e creare un nuovo modello di app SwiftUI. Eserciti SwiftUI Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.
Ho bisogno di esperienza per iniziare SwiftUI Academy?
Non è richiesta alcuna esperienza precedente. SwiftUI Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 1 di 4.
Quanto tempo richiede la lezione «Installare Xcode e creare un progetto»?
La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.
Posso scrivere ed eseguire codice in questa lezione SwiftUI Academy?
Sì. Ogni lezione SwiftUI Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.
Tutte le lezioni di questo corso
- Installare Xcode e creare un progetto
- Anatomia di un file di app SwiftUI
- La canvas di anteprima in tempo reale
- Eseguire su simulatore e dispositivo