0Pricing
SwiftUI Academy · Lesson

Running on Simulator & Device

Build and launch your app on the iOS simulator.

Running on Simulator & Device is a free SwiftUI Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the SwiftUI Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Run Your App

The canvas is great, but to feel the real thing you run your app. Xcode builds it and launches it like a user would. 🚀

The iOS Simulator

The simulator is a virtual iPhone on your Mac. It lets you test your app without owning every physical device.

Pick a Device

In the toolbar, use the scheme menu to choose a simulator like iPhone 15. This sets where your app will launch when you run it.

Press Run

Click the Run button, the triangular play icon, or press Command-R. Xcode compiles your code and boots the simulator for you.

First Build Takes Time

The first build can be slow as Xcode compiles everything. Later runs are much faster because it only rebuilds what changed.

Interact With It

Once it launches, tap and swipe in the simulator like a real phone. Use your mouse or trackpad to test every interaction. 🖐️

Stop the App

The square Stop button ends the running app. Stop and run again whenever you want a fresh launch of your latest code.

Read the Console

At the bottom, the console shows logs and any print output from your app. It is the first place to look when something misbehaves.

print("App launched!")

Running on a Real Device

Plug in an iPhone and pick it in the scheme menu to run on a real device. Real hardware shows true performance and gestures.

Sign In With Apple ID

For device runs, Xcode needs a free Apple ID in Settings to sign the app. This trusts your build so the iPhone will open it.

Simulator vs Device

Use the simulator for fast everyday testing, and a real device before release to catch issues only true hardware reveals.

Quick Check

What is the simulator used for during development?

Recap

You can now run your app: pick a simulator or device, press Run, interact, and watch the console. Your first app is alive! 🎉

Frequently asked questions

Is the “Running on Simulator & Device” lesson free?

Yes — the full text of “Running on Simulator & Device” is free to read here on the web, and the SwiftUI Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the SwiftUI Academy course, upgrade to CoddyKit PRO.

What will I learn in “Running on Simulator & Device”?

Build and launch your app on the iOS simulator. You practise SwiftUI Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start SwiftUI Academy?

No prior experience is required. SwiftUI Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Running on Simulator & Device” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this SwiftUI Academy lesson?

Yes. Every SwiftUI Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Installing Xcode & Creating a Project
  2. Anatomy of a SwiftUI App File
  3. The Live Preview Canvas
  4. Running on Simulator & Device
← Back to SwiftUI Academy