title: My RELEASE framework file is bigger than DEBUG framework
body: <p>I have a kotlin multi-platform project for which I am creating a release framework. My release framework is bigger than the debug framework.</p>
  
  <p>Following is the gradle task to create the framework:</p>
  
  <pre><code>task packForXcode(type: Sync) {
  
      final File frameworkDir = new File(buildDir, "xcode-frameworks")
      final String mode = 'RELEASE'
      final def framework = kotlin.targets.iosArm64.binaries.getFramework(frameworkName, mode)
  
      inputs.property "mode", mode
      dependsOn framework.linkTask
  
      from { framework.outputFile.parentFile }
      into frameworkDir
  
      doLast {
          new File(frameworkDir, 'gradlew').with {
              text = "#!/bin/bash\nexport 'JAVA_HOME=${System.getProperty("java.home")}'\ncd '${rootProject.rootDir}'\n./gradlew \$@\n"
              setExecutable(true)
          }
      }
  }
  </code></pre>
  
  <p>The framework file generated when <code>mode = 'RELEASE'</code> is 5.3 kb but when <code>mode = 'DEBUG'</code> one is 3.8 Kb.</p>
  
  <p>I have 2 questions:</p>
  
  <ul>
  <li>Is this expected ?</li>
  <li>How can reduce or remove unused code while creating such a framework like R8/pro-guard in android ?</li>
  </ul>