xcodekotlinkotlin-multiplatform

Kotlin Multiplatform not grabbing XCode Scheme


I am trying to use Kotlin Multiplatform but the "XCode Project Scheme" isn't showing anything when I try to make a new configuration for iOS.

Im currently using: iOS Version 10.15.7 Android Studio Version:4.1.2

I've already made the changes suggested this link here. (Open XCode->Preferences->Locations-> Select CLI) And also follow the instructions suggested by this question here If a run the following line in terminal

 xcode-select --print-path

It shows:

/Applications/Xcode.app/Contents/Developer

Solution

  • This answer is based on this page from KMM Plugin documentation.

    Android Studio 4.1.* should work fine for KMM Plugin 2.0.0 AND Kotlin plugin 1.4.2*. If either of those plugins will be updated, one cannot guarantee stable and correct work. So, when you want to use Kotlin 1.4.3* or later, you got to

    1. Install AS 4.2 Beta or Canary Android Studio(Android Studio Preview).
    2. Update Kotlin plugin to 1.4.30 or later(better use the latest version).
    3. Update KMM Plugin to 2.0.1 or later(2.0.2 for Android Studio 2020.3.1 Canary 8, see issue here).

    After those steps, KMM Plugin should be working fine. If you face any issues with that, consider reporting them to kotl.in/issue.