0Pricing
Kotlin Multiplatform Academy · Ders

iOS Uygulamasını Xcode'da Açma ve Çalıştırma

Paylaşılan çerçevenize bağlanan iOS uygulamasını başlatın.

iOS Uygulamasını Xcode'da Açma ve Çalıştırma, CoddyKit'te ücretsiz bir Kotlin Multiplatform Academy dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Kotlin Multiplatform Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Kotlin Multiplatform Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Now the iOS Side

Android worked, so let's light up iOS. The iOS app lives in its own folder and you build it with Xcode, not Android Studio. 🍎

Open the Xcode Project

Inside the iosApp folder you'll find a project or workspace file. Double-click it to open the iOS app in Xcode.

open iosApp/iosApp.xcodeproj

Workspace vs Project File

If your setup uses CocoaPods, always open the .xcworkspace file. The plain .xcodeproj will miss the pod dependencies.

Pick a Scheme and Simulator

At the top of Xcode, choose the iosApp scheme and a simulator like iPhone 15 from the device dropdown.

The Shared Framework Link

The iOS app does not consume Kotlin source directly. It links a precompiled framework that Gradle produces from your shared module.

A Build Phase Runs Gradle

A custom build phase in Xcode calls Gradle first. That step compiles the shared framework before Swift code is even touched.

./gradlew :shared:embedAndSignAppleFrameworkForXcode

Press Run in Xcode

Click the Run triangle. Xcode triggers Gradle, builds the framework, compiles Swift, and boots the simulator with your app.

Call Shared Code from Swift

Your Swift screen imports the framework and calls the shared API by name. The same logic that ran on Android now runs on iOS.

import shared
let text = Greeting().greet()

First Build Is the Slow One

The very first iOS build compiles the whole framework, so be patient. Later runs reuse cached output and feel much faster. ⏳

Read Errors in the Issue Navigator

When something fails, open the Issue Navigator. Gradle errors and Swift errors both surface here with a jump-to-line link.

Same Logic, Two Apps

Seeing your shared greeting in the iOS simulator closes the loop. One Kotlin codebase is now powering both native apps.

Quick Check

Let's confirm how iOS consumes your shared Kotlin.

Recap

You opened the iosApp in Xcode, picked a simulator, and pressed Run. A build phase ran Gradle to make the framework, then Swift called your shared code live. 🎉

Sıkça Sorulan Sorular

“iOS Uygulamasını Xcode'da Açma ve Çalıştırma” dersi ücretsiz mi?

Evet — “iOS Uygulamasını Xcode'da Açma ve Çalıştırma” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Kotlin Multiplatform Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Kotlin Multiplatform Academy kursu toplamda 4 dersten oluşur.

“iOS Uygulamasını Xcode'da Açma ve Çalıştırma” dersinde ne öğreneceğim?

Paylaşılan çerçevenize bağlanan iOS uygulamasını başlatın. Kotlin Multiplatform Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Kotlin Multiplatform Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Kotlin Multiplatform Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.

“iOS Uygulamasını Xcode'da Açma ve Çalıştırma” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Kotlin Multiplatform Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Kotlin Multiplatform Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Android Uygulamasını Studio'dan Çalıştırma
  2. iOS Uygulamasını Xcode'da Açma ve Çalıştırma
  3. iOS Çerçevesi Nasıl Oluşturulur
  4. 'Paylaşılan Kod Bulunamadı' Sorunlarını Ayıklama
← Kotlin Multiplatform Academy Sayfasına Dön