0Pricing
Kotlin Multiplatform Academy · Lesson

Xcode & CocoaPods for the iOS Side

Mac-side prerequisites to build the iOS app.

Xcode & CocoaPods for the iOS Side is a free Kotlin Multiplatform Academy lesson on CoddyKit — lesson 2 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 Kotlin Multiplatform Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The iOS Half Needs a Mac

To build the iOS target of your KMP app, you need a Mac. Apple's build tools only run on macOS, so this side lives there. 🍎

Install Xcode

Get Xcode from the Mac App Store. It is Apple's IDE and it provides the compiler and simulators your iOS app needs.

Open Xcode Once

Launch Xcode at least once after installing. It finishes setup and accepts the license, which Gradle later relies on.

Command Line Tools

Xcode also brings command line tools, the compilers and utilities your KMP build calls behind the scenes to produce the iOS framework.

Pick the Active Toolchain

If you have several Xcode versions, point the system at the right one so builds use the toolchain you expect.

sudo xcode-select -s /Applications/Xcode.app

Meet CocoaPods

CocoaPods is a dependency manager for iOS. KMP can use it to wire your shared framework into the iOS app.

Install CocoaPods

Install CocoaPods from the terminal. Once it is on your machine, the KMP plugin can publish your shared module as a pod.

sudo gem install cocoapods

Confirm the Install

Check that CocoaPods is ready by asking for its version. A version number means the iOS dependency tooling is in place.

pod --version

Ruby Comes Into Play

CocoaPods runs on Ruby. macOS ships Ruby, though many teams use a version manager to avoid permission headaches.

Use the Simulator

Xcode includes the iOS Simulator, so you can run your shared-powered iOS app without a real iPhone connected.

Both Sides Are Ready

With Studio plus Xcode and CocoaPods set up, both platforms can now build from the same Kotlin codebase. You are ready to scaffold a project.

Quick Check

What role does CocoaPods play in a KMP setup?

Recap

You set up the Mac side: Xcode with its command line tools and the simulator, plus CocoaPods. The iOS half is now buildable. ✅

Frequently asked questions

Is the “Xcode & CocoaPods for the iOS Side” lesson free?

Yes — the full text of “Xcode & CocoaPods for the iOS Side” is free to read here on the web, and the Kotlin Multiplatform 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 Kotlin Multiplatform Academy course, upgrade to CoddyKit PRO.

What will I learn in “Xcode & CocoaPods for the iOS Side”?

Mac-side prerequisites to build the iOS app. You practise Kotlin Multiplatform 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 Kotlin Multiplatform Academy?

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

How long does the “Xcode & CocoaPods for the iOS Side” 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 Kotlin Multiplatform Academy lesson?

Yes. Every Kotlin Multiplatform 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. JDK, Android Studio & the KMP Plugin
  2. Xcode & CocoaPods for the iOS Side
  3. Generate a Project with the KMP Wizard
  4. Tour of the Generated Folders
← Back to Kotlin Multiplatform Academy