Thread
#multiplatform
    c

    curioustechizen

    2 years ago
    Hello everyone. Does anyone have any guides for extending the kotlin multiplatform
    cocoapods
    plugin such that it publishes the compiled
    .framework
    file to a (private) remote repo? My goal is to be able to consume the
    .framework
    file remotely instead of from the local file system. I've seen some examples on the cocoapods website but most of the examples talk about publishing the source (looks like cocoapods builds the framework from source). This is not what I want.
    The reason for consuming it remotely is I want to publish multiple versions and I want to be able to choose which version of the framework the iOS app depends on
    ritesh

    ritesh

    2 years ago
    Hey Kiran 👋 Following discussion should be useful –– https://github.com/JetBrains/kotlin-native/issues/3140
    Currently I’m also working on it and inclined towards publishing the binaries on github release (or save the binary within the repo using git lfs) and then point the podspec to this pre built framework.
    c

    curioustechizen

    2 years ago
    @ritesh I found a way to do it. I used this article as a guide and made some adjustments: https://medium.com/onfido-tech/distributing-compiled-swift-frameworks-via-cocoapods-8cb67a584d57 One thing - I could not get it to work with Git LFS (or perhaps I thought that LFS was the issue at one point but maybe the issue was elsewhere)