Nilay Dağdemir

    Nilay Dağdemir

    7 months ago
    Hello all, By default do kotlin 1.6.0 creates the shared framework for iOS with bitcode enabled or should I write the code below on the build gradle file?
    kotlin {
    iosArm64(*"myapp"*) {
    binaries {
    framework {
    embedBitcode(*"bitcode"*) // for release binaries.
    }
    }
    }
    }
    I searched but couldn’t find a clear answer about this subject. *I’m not using cocoapods
    Viacheslav Kormushkin

    Viacheslav Kormushkin

    7 months ago
    Nilay Dağdemir

    Nilay Dağdemir

    7 months ago
    Then I don’t need to add embedBitcode configuration to the build gradle in order to enable bitcode for release mode
    Thanks
    ubuntudroid

    ubuntudroid

    7 months ago
    Is it the same when using Cocoapods with framework? @Viacheslav Kormushkin
    Nilay Dağdemir

    Nilay Dağdemir

    7 months ago
    Unfortunately after my tests, I saw that KMM framework is not created with bitcode by default. You need to make configurations to create the framework with bitcode enabled
    ubuntudroid

    ubuntudroid

    7 months ago
    @Nilay Dağdemir Just for clarity: adding
    embedBitcode(BITCODE)
    is enough, right? Or do I have to add anything else?
    Nilay Dağdemir

    Nilay Dağdemir

    7 months ago
    I think yes it should be enough but not sure yet since I still have some problems for creating bitcode enabled framework.
    My problems may be related to mac mini with m1 chip