Hello , I have a app that is made up of Kotlin Mul...
# multiplatform
b
Hello , I have a app that is made up of Kotlin Multiplatform, for the application structure, and Jetbrains Compose / Compose Multiplatform for the UI. Material2 standard is used for the compose api. I can do android all fine but when I load the xcproj and run it say that can’t find module “composedapp”
r
Have you run any of the tasks to link the framework?
b
I can’t as I says the error
r
I mean gradle tasks.
It would be something like this:
Copy code
./gradlew :app:linkDebugFrameworkIosSimulatorArm64
Or something like that.
b
How do you run it , sorry I’m a bit of a noob I’ve only started doing this sort of programming lol
r
There's also some gradle configuration that will allow you to specify the name of your output framework.
Copy code
kotlin {
    listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach { iosTarget ->
        iosTarget.binaries.framework {
            baseName = "MyLibraryName"
            isStatic = true
        }
    }
}
Something like that.
"MyLibraryName" would then be framework you import.
Actually--if you're just starting, did you use the KMP Wizard to create your project in the first place? https://kmp.jetbrains.com
b
No but i have like downloaded it and done alot of stuff in the terminal
🧵 1
IMG_1633.jpg
The thing is I had to upload my app to the iOS store which I have and I had to get s1 to do it as I didn’t have a Mac at yhe time so I have no idea what he did
r
I'm sorry. I don't understand your current situation. In any case, I would focus on my ability to build/run the app locally first before trying to worry about uploading it to the app store.
b
Basically I’m a student and had to build an app and upload it for a event near me. At the time I didn’t have a Mac so we built it using KMP and we got someone to upload the iOS build so I could publish it , so he managed to build it but I’m. It sure how
As when I run it on Xcode it says no such module ‘composeApp’
r
You called the module "ComposeApp"
b
Yes
r
That's not "composeApp"
b
Sorry I miss typed
It does say “ComposeApp”
r
Can you use the Android Studio Kotlin Multiplatform plugin to create iOS App run configuration and then run via Android Studio?
This won't necessarily help you upload to the app store directly, but it will run the tasks to build your iOS framework.
b
I have tried that but says this
IMG_1634.jpg
r
Ah--that's a different issue than you were saying. It looks like you may need to update your XCode installation to provide the simulator.
b
I have installed Xcode about 3 times and hasn’t changed :/
r
Do you have that simulator?
b
Yes
r
In any case, I recommend going back and setting up a new project via the wizard and seeing if you can get a new project to work.
Just do everything exactly through the wizard, making zero other changes.
You apparently have some other issues that are going to be difficult to diagnose with the information we have, so my recommendation would be that you check with an independent project that you have your environment set up.
b
Okay Thankyou