Hi, does anyone know how to solve "No such module...
# multiplatform
s
Hi, does anyone know how to solve "No such module composeApp" error
p
Could be many things. Is it Android/iOS? Did you create the project in the kmp website?
s
It's on the ios side. I used the kmp wizard. This occurred because of the comment before the last one here.https://youtrack.jetbrains.com/issue/KT-64096
p
Oh I see you are using cocoapods. I haven't used pods in a while but I remember you had to run pod install and then run the podFrameworks gradle tasks to generate podframeworks and so on. But yeah, the current kmp template generated in the website , if using cocoapods, you have to tweak it a little bit.
s
Whats is the podFrameworks gradle task command?
p
When you apply the cocoapods plugin to your KMP project. It adds a couple of gradle tasks to it. Go to the Gradle panel in the right tab, look for your project and look for cocoapods tasks. There should be one to generate the pod spec file and one for the pod frameworks
You run that task and open your cocoapods project in Xcode and it should work. Notice when using cocoapods. In Xcode you open your project using the
.workspace
file not the
.config
874 Views