Sunil Kumar
05/28/2023, 7:50 AMorg.jetbrains.compose.resources.MissingResourceException: Missing resource with path: add_post_icon.png
So if i am using a separate module (a kind of wrapper over shared module) for using in ios side, what changes do i have to make related to resources? Its the flow now: iosApp -> iosEntryPoint -> sharedSunil Kumar
05/28/2023, 7:52 AMplugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
}
kotlin {
iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods {
version = "1.0.0"
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
ios.deploymentTarget = "14.1"
podfile = project.file("../iosApp/Podfile")
framework {
baseName = "iosEntryPoint"
isStatic = true
}
extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**']"
}
sourceSets {
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
implementation(project(":shared"))
}
}
}
}
Dima Avdeev
05/28/2023, 5:14 PMpod install
on your iOS Application project dir with cocoapodsSunil Kumar
05/29/2023, 12:10 PM