zsperske
08/26/2020, 7:21 PMNo such module 'SharedCode'
error on my import statementskpgalligan
08/26/2020, 7:46 PMiosArm64
and iosX64
targets in your config
val onPhone = System.getenv("SDK_NAME")?.startsWith("iphoneos") ?: false
if (onPhone) {
iosArm64("ios")
} else {
iosX64("ios")
}
ios
but we had issues in older intellij buildszsperske
08/26/2020, 7:48 PMval iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
::iosArm64
else
::iosX64
iOSTarget("ios") {
binaries {
framework {
baseName = "SharedCode"
}
}
}
kpgalligan
08/26/2020, 7:49 PMzsperske
08/26/2020, 7:50 PMkpgalligan
08/26/2020, 7:50 PMzsperske
08/26/2020, 7:52 PMrusshwolf
08/26/2020, 7:52 PMzsperske
08/26/2020, 7:54 PMrusshwolf
08/26/2020, 7:54 PMzsperske
08/26/2020, 7:55 PMyousefa2
08/26/2020, 8:00 PMNo such module 'SharedCode'
implies that it’s not finding the framework that’s being built by gradle.
If I assume correctly then you would probably have a build phase to run ./gradlew packForXcode
to build the framework and if this is passing then the problem might be in Xcode rather than gradle.
The only thing I can think of is search paths. Make sure they have the root folder where the framework is being created.zsperske
08/26/2020, 8:02 PM