Thread
#multiplatform
    v

    verachadw

    3 years ago
    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

    3 years ago
    Hi. Do you distribute fat framework built from Kotlin sources?
    v

    verachadw

    3 years ago
    If you mean by using lipo to create the framework, the answer is yes.
    s

    svyatoslav.scherbina

    3 years ago
    ankushg

    ankushg

    3 years ago
    ^^ yup this sounds exactly like what we were running into
    v

    verachadw

    3 years ago
    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
    ankushg

    ankushg

    3 years ago
    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

    3 years ago
    @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
    .