val podspecText = “”” Pod::Spec.new do |spec| spec.name = "<ProjectName>" spec.version = "$version" spec.license = "<License>" spec.homepage = "<Homepage>" spec.authors = "<Author>" spec.summary = "<Summary>" spec.source = { :git => '
[email protected]:<Username>/<ProjectName>Spec.git’, :branch => '$version' } spec.platform = :ios, "<x.x>" spec.vendored_frameworks = 'cocoapods/debug/$frameworkName.framework' spec.static_framework = true spec.libraries = "c++", "sqlite3", ... spec.module_name = "#{spec.name}_umbrella" spec.pod_target_xcconfig = { 'KOTLIN_TARGET[sdk=iphonesimulator*]' => 'ios_x64', 'KOTLIN_TARGET[sdk=iphoneos*]' => 'ios_arm' ... } end “””.trimIndent() artifactsDir.resolve("<ProjectName>.podspec”).writeText(podspecText) } [KMP: iosmodule/build.gradle]