SwiftUI Academy · レッスン

シミュレーターとデバイスでの実行

iOS シミュレーターでアプリをビルドして起動します。

レッスン 4/413 ステップ

「シミュレーターとデバイスでの実行」はCoddyKit上の無料SwiftUI Academyレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはSwiftUI Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 SwiftUI Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

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! 🎉

無料で開始

AI チューターと学ぶ Swift — 無料

ブラウザでリアルコードを書いて実行し、24/7 の AI チューターから瞬時にサポートを受け、ウェブまたはアプリで続きから学習できます。

コース
30
レッスン
120

よくある質問

「シミュレーターとデバイスでの実行」レッスンは無料ですか?

はい。「シミュレーターとデバイスでの実行」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、SwiftUI Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 SwiftUI Academyコースには全4レッスンが含まれています。

「シミュレーターとデバイスでの実行」で何を学びますか?

iOS シミュレーターでアプリをビルドして起動します。 ブラウザで直接実行するハンズオンコードでSwiftUI Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

SwiftUI Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのSwiftUI Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「シミュレーターとデバイスでの実行」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このSwiftUI Academyレッスンでコードを書いて実行できますか?

はい。すべてのSwiftUI Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. Xcode のインストールとプロジェクトの作成
  2. SwiftUI アプリ ファイルの構成
  3. ライブプレビュー キャンバス
  4. シミュレーターとデバイスでの実行
← SwiftUI Academyに戻る