Uli Niggemann
03/22/2023, 8:25 PMgradle(task: "clean assembleDebug")
but that doesn’t do the trick…
Thanks for a hint!Javier
03/22/2023, 9:42 PMUli Niggemann
03/23/2023, 9:25 AMkmpModules = ["kmp1", "kmp2"]
kmpModules.each_with_index {|val, index|
gradle(task: ":#{val}:linkPodReleaseFrameworkIosArm64")
sh(command: "mkdir -p ../#{val}/build/cocoapods/framework")
sh(command: "cp -r ../#{val}/build/bin/iosArm64/podReleaseFramework/* ../#{val}/build/cocoapods/framework")
}
The scripts runs ‘linkPodReleaseFrameworkIosArm64’ for every module and copies it to ‘{kmp_module_name}/build/cocoapods/framework’
Afterwards the xCode build is able to build…Landry Norris
03/23/2023, 2:16 PM./gradlew :module-name:syncFramework -Pkotlin.native.cocoapods.platform=iphonesimulator -Pkotlin.native.cocoapods.archs=x86_64 -Pkotlin.native.cocoapods.configuration=Debug
before each build. It seems to work fine. Note that the args don’t have to actually match the arch/sdk you plan to build. It just needs something built.Uli Niggemann
03/23/2023, 2:44 PMLandry Norris
03/23/2023, 2:46 PMUli Niggemann
03/23/2023, 2:47 PM