title: Adding Snowplow to Kotlin multiplatform project for iOS
body: <p>I am trying to integrate <a href="https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/mobile-trackers/mobile-trackers-v2-0/quick-start-guide/#tab-ios-tracker" rel="nofollow noreferrer">Snowplow</a> to a Kotlin Multiplatform Project.</p>
  <p>Android is working fine:</p>
  <pre><code>val androidMain by getting {
          dependencies {
              api(&quot;com.snowplowanalytics:snowplow-android-tracker:1.7.1&quot;)
          }
      }
  </code></pre>
  <p>But integrating the iOS Cocoapod causes some troubles. I added the cocoapod plugin:</p>
  <pre><code>plugins {
      kotlin(&quot;multiplatform&quot;) version &quot;1.4.32&quot;
  }
  </code></pre>
  <p>And the Snowlow pod:</p>
  <pre><code>kotlin {
      iosX64()
      iosArm64()
      cocoapods {
          pod(&quot;SnowplowTracker&quot;) {
              version = &quot;~&gt; 2.1.1&quot;
          }
      }
  }
  </code></pre>
  <p>Gradle sync results in the following error:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.Error: /var/folders/gv/rc4dmzjs3wj9kt4kr00nwhdw0000gn/T/2185483547857483783.m:1:9: fatal error: module 'SnowplowTracker' not found
      at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
      at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
      at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
      at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:506)
      at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:264)
      at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:74)
      at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
      at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19)
      at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
  
  Execution failed for task ':cinteropSnowplowTrackerIosArm64'.
  &gt; Process 'command '/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
  </code></pre>
  <p>As I am Android developer I have basically zero knowledge about pods and their errors. I appreciate any hint towards a solution, as Google didn't help so far.</p>