I can't get my ios app with CocoaPods to build in ...
# moko
m
I can't get my ios app with CocoaPods to build in my KMM setup with resources. The build fails complaining that it can't find the task "copyFrameworkResourcesToApp" which, indeed, isn't in the list of moko Gradle tasks. There is "podPublishReleaseXCFrameworkToApp", but that doesn't help. I notice the (somewhat) relevant samples seem to all include the plugin "dev.icerock.mobile.multiplatform.apple-framework" and related stuff, even though the installation notes don't mention this at all. Is this what's required here?
a
copyFrameworkResourcesToApp
task will be created only if your framework
isStatic = true
. if you use dynamic framework this task not required at all
dev.icerock.mobile.multiplatform.apple-framework
not required. it simplify gradle build files, but not relates to moko-resources. sources of this plugin here - https://github.com/icerockdev/mobile-multiplatform-gradle-plugin/blob/master/src/main/kotlin/dev/icerock/gradle/AppleFrameworkPlugin.kt
m
Thanks for that @alex009. Yes, I've made my Cocoapods build static. This is a slight problem since it prevents SwiftUI preview, but it seems to be the only option 😕
108 Views