Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 212
Gan Avatar asked Sep 23 '20 14:09

Gan


Video Answer


2 Answers

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

like image 123
Uruk Maat Ra Avatar answered Nov 18 '22 02:11

Uruk Maat Ra


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

like image 24
Nilay Dagdemir Avatar answered Nov 18 '22 01:11

Nilay Dagdemir