LizardStd
LizardStd

Reputation: 51

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

Upvotes: 3

Views: 1991

Answers (2)

user26916595
user26916595

Reputation:

You just need to select the same Xcode project again from the browse option and then you will be able to see the Xcode Project scheme : Xcode Project configuration :

Click here

Upvotes: 2

Artyom Degtyarev
Artyom Degtyarev

Reputation: 2888

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.

Upvotes: 1

Related Questions