Hi everyone We are using `org.jetbrains.kotlin.gr...
# compose-ios
m
Hi everyone We are using
org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
instead of the CocoaPods Plugin to build our framework. This way we do get a
MissingResourceException
when we attempt to access a resource on iOS. Is it possible that this approach is not supported with Kotlin 1.9.0 and Compose 1.5.0-beta02? Or to put it differently: Is the CocoaPods plugin necessary in order to package resources correctly?
👍 1
2
f
Did you perform the steps described here https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1692089568476769 ???
m
this still needs the CocoaPods plugin
🙁 1
m
Thanks @Francis Mariano and @Milchschlumpf I was able to resolve the issue by executing
./gradlew podInstall
. Initially, I had skipped this step as I wasn’t using the Cocoapods Plugin.
s
I hope this goes away. I don’t like CocoaPods.
m
Here is an example for using the regular framework: https://github.com/JetBrains/compose-multiplatform/pull/3340
🙏 1
s
Can't run podInstall, because my project hasn't any CocoaPods config. What's the magic that this one podInstall run performs? 🤔
m
You don't need to run podInstall if you use the RegularFramework (atleast I didn't)
s
Looks like it. I just made it work. The task
embedAndSignAppleFrameworkForXcode
is the one copying the resources and they are located in a subfolder "compose-resources". This wasn't obvious to me
I replaced it now with
syncComposeResourcesForIos