Hi team, I’m starting with KMM in an existing iOS ...
# ios
r
Hi team, I’m starting with KMM in an existing iOS project (workspace), which already contains a shared XCFramework (Appcore) and a main application project (UI & other stuff). I want to integrate the KMM framework in both targets, but if I get it right the
./gradlew :model:embedAndSignAppleFrameworkForXcode
has to be in the main app’s build phases. I can link the Appcore FW with the KMM Shared framework in the build settings but then I skip the build phase for the KMM Shared FW. Is there any way to use the KMM Shared framework in both targets simultaneously?
m
I’m starting with KMM in an existing iOS project (workspace), which already contains a shared XCFramework (Appcore) and a main application project (UI & other stuff).
Perhaps a manual approach that isn't based on a framework such as this one would work better: https://stackoverflow.com/a/74324604/185926 ? Multiple frameworks from your own company in the same project is a bit of a "harder than it needs to be" arrangement for pure iOS code. https://stackoverflow.com/questions/61469574/how-to-add-two-or-more-kotlin-native-modules-on-an-ios-project/65420364#65420364 has more in depth. In essence: it's largely working around the "single static project" issue with cocoapods (that pure iOS projects face too).