https://kotlinlang.org logo
n

Nilay Dağdemir

01/31/2022, 12:08 PM
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
v

Viacheslav Kormushkin

01/31/2022, 12:33 PM
n

Nilay Dağdemir

01/31/2022, 12:37 PM
Then I don’t need to add embedBitcode configuration to the build gradle in order to enable bitcode for release mode
👌 1
Thanks
u

ubuntudroid

02/11/2022, 11:05 PM
Is it the same when using Cocoapods with framework? @Viacheslav Kormushkin
n

Nilay Dağdemir

02/14/2022, 4:53 AM
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
u

ubuntudroid

02/14/2022, 11:34 AM
@Nilay Dağdemir Just for clarity: adding
embedBitcode(BITCODE)
is enough, right? Or do I have to add anything else?
n

Nilay Dağdemir

02/14/2022, 11:37 AM
I think yes it should be enough but not sure yet since I still have some problems for creating bitcode enabled framework.
🙏 1
My problems may be related to mac mini with m1 chip
3 Views