8. Create iOS project in KMP

Daniyar Nurgaliyev
2 min readJun 21, 2024

--

Creating an iOS project in Kotlin Multiplatform (KMP) allows you to share code between iOS and other platforms. Follow these steps to set up your iOS project using Xcode.

Step 1: Open Xcode and Create a New Project

  • Launch Xcode on your Mac.
  • Click on Create New Project...

Step 2: Select Multiplatform App Template

  • In the template selection window, choose Multiplatform and then select App. Click Next.

Step 3: Configure Project Settings

  • Enter iosApp as the Product Name.
  • Enter an appropriate Organization Identifier, such as orgId.
  • Proceed to the next screen.

Step 4: Choose Project Location

  • Choose the root folder of your application as the location for your new iOS project.
  • Confirm by clicking “Create”.

Step 5: Set Deployment Target

  • Make sure to choose iPhone 15 as the deployment target device.
  • Build and run the project to ensure everything is set up correctly.

After completing the setup, your Xcode project should look like the following screenshot.

Summary

By following these steps, you have successfully created an iOS project in your Kotlin Multiplatform setup. This allows you to share code between iOS and other platforms, making your development process more efficient and streamlined. The next step is to integrate and use the shared KMP code within your iOS project.

Unlisted

--

--