Hello everybody,
I'm trying to introduce Multiplatform first as libraries to fasten development of some features.
I managed to find in the documentation the way to publish Android libraries (to Maven repository), but I could not find the way to publish iOS libraries (Cocoapods). https://kotlinlang.org/docs/multiplatform-publish-lib.html#publish-an-android-library
Running the command
./gradlew podPublishXCFramework
generates the pod here:
[root]/build/cocoapods/publish/release
But I'm missing the packaging part to send it to my Cocoapod repository (Artifactory).
From what I see, Artifactory does not support the
pod trunk push
action. An archive has to be send using a curl-like command.
Big question behing, is there a way to generate directly the right archives, ready to be deployed?
If someone manage to help me on this, how can I contribute to the official documentation?
Thanks a lot for your help 🙏
Hello, thanks for this.
I already have everything ready on Artifactory side, question being how to maintain generate a valid podfile
z
Zsolt Kovacs
04/08/2024, 8:09 AM
I would recommend reaching out to one of your iOS engineers for support.
I just wrote the Podfile by hand. There's a cocoapods Gradle plugin for KMP, you can use the one it generates as a starting point. Don't use it directly, because the Podfile it generates is meant for local development, not xcframework distribution.