I have this error when opening the iOS project created with the Kotlin Multiplatform Wizard tool from JetBrains:
No such module 'ComposeApp'
Does anyone know the reason?
Steps I follow:
•
I download the KMP project as it is by default (Android and iOS with shared UI) from this URL:
https://kmp.jetbrains.com/
• I unzip the project.
• I run Android, and it works.
• I run iOS from Android Studio, and it gives a build error.
• I open the iOS project from Xcode, and in the
ContentView.swift
class, I get the error
"No such module 'ComposeApp'"
referring to the line
import ComposeApp
.
A few days ago, I created a project using the same wizard, and I had no issues. I’ve compared both projects and found no differences. I can’t explain what’s happening.
I’ve repeated the process several times, cleared the caches of both Android Studio and Xcode, restarted the computer, opened Xcode first and then Android Studio... but I can’t resolve it.