Hey guys, I'm working on iOS app with K/N framewor...
# kotlin-native
j
Hey guys, I'm working on iOS app with K/N framework and everything worked just fine untill I've added a cinterop Keychain wrapper written in ObjectiveC. Right now I'm getting
bitcode bundle could not be generated because (...) was built without full bitcode.
when trying to build an archive of my app. Has anybody faced something like this before?
s
I don't know if K/N can create Bitcode, but you have the option to disable Bitcode in Xcode https://stackoverflow.com/questions/47717477/can-bitcode-still-be-disable-on-xcode-9-2
j
I can easily create a framework with embed bitcode, but not cinterop library. And without bitcode could have some trouble with being distributed later on, couldn't it?
s
As far as i know, bitcode is only required for WatchOS-Apps. We have disabled bitcode (even before k/n) and never had any issues.
j
Huh, this could be a nice way out if I don't manage to make bitcode happen
s
I can not help you with getting the bitcode issue resolved, but please update me if you do!
s
o
Bitcode embedding is supported in recent K/N versions, just to be turned on
k
bitcode is on by default for iOS targets. however, the cinterop library also needs to be built with bitcode.
it's all or nothing
j
^ That's true. I recompiled my static library with bitcode enabled and now everything works fine