Gan
Gan

Reputation: 153

Could not able run iOSApp in Kotlin multiplatform in Android Studio

An error occurs when run iOSApp in KMM(Android studio), Could not able to configure schema. please see the attachment.

Error attachment

Upvotes: 15

Views: 7169

Answers (2)

Nilay Dagdemir
Nilay Dagdemir

Reputation: 284

Go to XCode > Preferences > Locations > Command Line Tools => Select desired version of Xcode. This worked for me.

Upvotes: 17

Uruk Maat Ra
Uruk Maat Ra

Reputation: 195

Run in console xcode-select --print-path

I got this result /Library/Developer/CommandLineTools

And it should be something like /Applications/Xcode${xcode-number}/Xcode.app

So run in console cd /Applications

Then run in console ls -la

If you see Xcode.app

  • Then you run example 1 in console

Else if you see something like Xcode 8.0.3

  • Then you run example 2 in console

Now you should run this in console sudo xcode-select -switch ${path-to-xcode.app}/Xcode.app

example 1 sudo xcode-select -switch /Applications/Xcode.app

example 2 sudo xcode-select -switch /Applications/Xcode 8.0.3/Xcode.app

Update:

I also found this https://youtrack.jetbrains.com/issue/KT-41691

Upvotes: 14

Related Questions