Hi all. I found the problem on iOS 32 bit devices ...
# multiplatform
v
Hi all. I found the problem on iOS 32 bit devices with our Multiplatform application. Everything work fine when we testing in debug build, but It always crash when launching with Testflight version. Have anyone encounter this kind of problem before?
s
Hi. Do you distribute fat framework built from Kotlin sources?
v
If you mean by using lipo to create the framework, the answer is yes.
s
a
^^ yup this sounds exactly like what we were running into
v
Just to confirm. If I move to use Kotlin EAP right now, It should fix the problem, right? Or we cano do it with upgrading Kotlin version
a
Kotlin 1.3.30 EAP includes new built-in tasks to handle the
lipo
fat framework generation, but you don't need to use it or upgrade to fix the problem. After you use
lipo
to combine your
iosArm32
and
iosArm64
(and optionally
iosX64
) frameworks, you probably also use the
Info.plist
file and headers from one of those builds. If you use the
Info.plist
and headers from the 32-bit build, you shouldn't have the crash anymore.
v
@ankushg Okay. Thanks for the info.
Seem like this approach is not working for me. I still get crash when launching from 32-bit devices after using
Info.plist
and other headers from
iosArm32
.