In today’s tutorial, we will learn how to resolve the error that Xcode 16.3+ is only supported since Kotlin 2.1.21 in Compose Multiplatform in Android Studio.
Recently, when I upgraded my Android Studio to the latest version, “Android Studio Narwhal 2025.1.1“, I also updated my Xcode to the newest version, “Xcode 16.4 (16F6)“. After starting Android Studio and opening my Kotlin Compose multiplatform project, I noticed a new type of error in the Project Environment Preflight Checks. The error is “Recommendations: ! Xcode 16.3+ is supported only since Kotlin 2.1.21 More details: https://youtrack.jetbrains.com/issue/KT-75781” .
Error screenshot:
So, I started googling the error and found a simple solution to this.
Steps to Resolve Error Xcode 16.3+ is supported only since Kotlin 2.1.21 in Android Studio:
1. To resolve the Kotlin version mismatch with the Xcode error, we need to upgrade the Kotlin version of our Kotlin Compose Multiplatform project.
2. Open your project’s libs.versions.toml file. This file contains all the versions of dependency used in the project.
3. Find the line with “Kotlin = “ , Now here you will find your old Kotlin version.
4. Replace the Kotlin version with the latest version, which is currently “2.2.0,” and save the file. Please note that the newest version at the time of creating this tutorial is 2.2.0; however, it may be different by the time you read this tutorial. You can always check for the latest Kotlin version on their official website.
5. Click the “Sync Now” button, and it will download the latest Kotlin version for your project and begin syncing.
6. Please restart Android Studio after the Sync process is complete, and your error will be resolved.
Thanks for reading the article. If you enjoy our content, please don’t hesitate to share our website with your friends, family, and colleagues.