https://kotlinlang.org logo
v

verachadw

03/25/2019, 2:17 PM
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

svyatoslav.scherbina

03/25/2019, 2:26 PM
Hi. Do you distribute fat framework built from Kotlin sources?
v

verachadw

03/25/2019, 2:32 PM
If you mean by using lipo to create the framework, the answer is yes.
s

svyatoslav.scherbina

03/25/2019, 2:44 PM
a

ankushg

03/25/2019, 3:29 PM
^^ yup this sounds exactly like what we were running into
v

verachadw

03/26/2019, 5:42 PM
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

ankushg

03/26/2019, 6:19 PM
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

verachadw

03/27/2019, 1:31 AM
@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
.
2 Views