Hello guys, I am working in Kmm library. I am in i...
# multiplatform
a
Hello guys, I am working in Kmm library. I am in iOS part and using cocoapods as dependency manager. I am new in ios and kmm. I am reading the cocoapods doc in kotlin. I am adding my gradle code in the thread. I am understand that my cocoapod code is generating .podspec file. But there is no instructions given in doc to generate framework. I want to use pod private spec, but I don't understand what I need to share in the repo. Can someone help me how can I generate framework and what files I can share in private pod sec repo. Any working examples will be great. Thanks
­čĹÇ 2
Copy code
plugins {
     kotlin("multiplatform") version "1.6.21"
     kotlin("native.cocoapods") version "1.6.21"
     id("com.android.library")
     id("maven-publish")
 }
 
 val libraryVersion = "0.0.4"
 var libraryGroup = "com.ab"
 var libraryArtifactId = "kmm-module"
 
 repositories {
     google()
     mavenCentral()
 }
 
 kotlin {
     android {
         publishLibraryVariants("release", "debug")
     }
     cocoapods {
         // Required properties
         // Specify the required Pod version here. Otherwise, the Gradle project version is used.
         version = "0.0.1"
         summary = "Some description for a Kotlin/Native module"
         homepage = "Link to a Kotlin/Native module homepage"
 
         // Optional properties
         // Configure the Pod name here instead of changing the Gradle project name
         name = "MyCocoaPod"
 
         framework {
             // Required properties
             // Framework name configuration. Use this property instead of deprecated 'frameworkName'
             baseName = "MyFramework"
 
             // Optional properties
             // Dynamic framework support
             isStatic = false
 
         }
     }
     iosX64()
     iosArm64()
     iosSimulatorArm64()
     sourceSets {
         val commonMain by getting
         val androidMain by getting
         val iosX64Main by getting
         val iosArm64Main by getting
         val iosSimulatorArm64Main by getting
         val iosMain by creating {
             dependsOn(commonMain)
             iosX64Main.dependsOn(this)
             iosArm64Main.dependsOn(this)
             iosSimulatorArm64Main.dependsOn(this)
         }
     }
 }
x