0Pricing
SwiftUI Academy · レッスン

Xcode のインストールとプロジェクトの作成

Xcode をセットアップし、新しい SwiftUI アプリのテンプレートを作成します。

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

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

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. 🚀

よくある質問

「Xcode のインストールとプロジェクトの作成」レッスンは無料ですか?

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

「Xcode のインストールとプロジェクトの作成」で何を学びますか?

Xcode をセットアップし、新しい SwiftUI アプリのテンプレートを作成します。 ブラウザで直接実行するハンズオンコードでSwiftUI Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

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

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

「Xcode のインストールとプロジェクトの作成」レッスンにはどのくらい時間がかかりますか?

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

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

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

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

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