# Multiplatform Framework with Bitcode

**URL:** <https://discuss.kotlinlang.org/t/multiplatform-framework-with-bitcode/10001>\
**Category:** Native\
**Created:** [October 25, 2018, 1:10am UTC](https://discuss.kotlinlang.org/t/multiplatform-framework-with-bitcode/10001 "2018-10-25T01:10:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karenho](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@karenho](https://discuss.kotlinlang.org/u/karenho)\
**Post date:** [October 25, 2018, 1:10am UTC](https://discuss.kotlinlang.org/t/multiplatform-framework-with-bitcode/10001/1 "2018-10-25T01:10:38Z")

</div>

Hello, I noticed from the updated FAQ that you can enable bitcode for the Kotlin framework: [https://github.com/JetBrains/kotlin-native/blob/master/FAQ.md#q-how-do-i-enable-bitcode-for-my-kotlin-framework](https://github.com/JetBrains/kotlin-native/blob/master/FAQ.md#q-how-do-i-enable-bitcode-for-my-kotlin-framework)

```
targets {
    fromPreset(presets.iosArm64, 'myapp') {
       compilations.main.outputKinds 'FRAMEWORK'
       compilations.main.extraOpts '-Xembed-bitcode' // for release binaries
       // or '-Xembed-bitcode-marker' for debug binaries
}

```

However when I try to generate the frameworks it gives me the warning:  
`warning: flag is not supported by this version of the compiler: -Xembed-bitcode` and the framework does not contain bitcode.

My current kotlin plugin version is: 1.3.0-rc-190-Studio3.2-1. Please let know what I can do to generate bitcode with the framework. Thanks!
