تثبيت Xcode وإنشاء مشروع
أعدّ Xcode وأنشئ قالب تطبيق SwiftUI جديداً
تثبيت Xcode وإنشاء مشروع درس مجاني في SwiftUI Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في 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/7) وفتح باقي دورة SwiftUI Academy، انتقل إلى CoddyKit PRO. تتضمن دورة SwiftUI Academy 4 دروس في المجموع.
ماذا ستتعلم في «تثبيت Xcode وإنشاء مشروع»؟
أعدّ Xcode وأنشئ قالب تطبيق SwiftUI جديداً تتمرن على SwiftUI Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ SwiftUI Academy؟
لا تُشترط خبرة سابقة. SwiftUI Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «تثبيت Xcode وإنشاء مشروع»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس SwiftUI Academy هذا؟
نعم. كل درس في SwiftUI Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- تثبيت Xcode وإنشاء مشروع
- بنية ملف تطبيق SwiftUI
- لوحة المعاينة المباشرة
- التشغيل على المحاكي والجهاز