

There’s one more step to add before you can run pod install. pod 'MyKmmModule', :path => '/path/to/kmm/submodule' end target 'MyIosApp' do // other dependencies. Then, simply add the dependency to the podspec file in your iOS project’s Podfile.

podspec file is pushed into the remote git repository, and then in your iOS repository, create a git submodule that points to the latest branch/release of your KMM project. In this approach, you need to ensure that the generated. If you notice, the generated podspec file has a script_phase attribute that will automatically execute a Gradle task to compile the KMM module into a native framework when you run/build from XCode. This plugin will add the necessary Gradle tasks to generate a podspec file for your KMM project. To make use of this plugin, simply apply the coapods Gradle plugin in the adle file of your KMM project and set up the necessary CocoaPods parameters. coapods is an official Gradle plugin from JetBrains that adds CocoaPods integration into a KMM project.
