Hi folks :wave: I’ve set up a Compose Multiplatfo...
# multiplatform
a
Hi folks 👋 I’ve set up a Compose Multiplatform application — the Android side works perfectly, but I’m having trouble getting the iOS side to run. Unfortunately, it fails without any clear or descriptive error messages. I’d really appreciate any pointers or guidance from anyone who has run into something similar. Thanks in advance 🙏
a
Hi there...we need to see the actual error. Usually you can find it in the messages or build log somewhere. Are you able to run the app from xcode?
a
I used this command ./gradlew iosAppiosX64Run
a
Ok, that usually just means you're in the wrong directory
I don't typically use the gradle command for the builds directly so I'll have to look on one of ours to see what it should be real quick
a
Okay, thanks
Screenshot 2025-12-26 at 8.45.56 PM.png
c
You don't have an
iosApp
project. How did you setup your KMP project?
a
I created the project using the KMP wizard in Android Studio, which also generated an iOS app (as shown in the attached project structure). Despite that, I’m having trouble running the iOS side.
c
Well something went wrong. So you should have a build.gradle file in the first iosApp folder and not sure why you would have 2 of those folders.
Without the file, Gradle will not recognize the folder as a „project“.
Actually looks like there is no Gradle task to run iOS. 🤔 I haven't setup an new project for a while, maybe that changed but also looking at the guide does not show the iOS folder as a Gradle project. https://kotlinlang.org/docs/multiplatform/compose-multiplatform-create-first-app.html
iosApp is an Xcode project that builds into an iOS application. It depends on and uses the shared module as an iOS framework.
👍 1