s

    Sylvain Patenaude

    10 months ago
    So I added a test under
    /src/iosTest
    because it involves native stuff like workers. I also have some multiplatform code spread like this: • In
    src/commonMain
    , code with some
    expected
    declarations. • In
    src/jvmMain
    , code with some
    actual
    declarations. • In
    src/iosMain
    , code with some
    actual
    declarations. Now when I run this on a simulator (vmImage
    masOS-10.14
    on DevOps), I get the following error when the process tries to run task compileKotlinIosSim:
    Expected function 'myFunction' has no actual declaration in module <MyModule> for Native
    Now technically I have 2 targets,
    iosX64("iosSim")
    and
    iosArm64("ios")
    , so I think this is causing my issue, but I don't know how to fix it. Thanks in advance for the help!
    mbonnin

    mbonnin

    10 months ago
    s

    Sylvain Patenaude

    10 months ago
    Thanks @mbonnin, seems to have worked with some reshuffling of my
    build.gradle
    based on the link you sent!