Thread
#multiplatform
    Kris Wong

    Kris Wong

    3 years ago
    I notice when using the cocoapod plugin, I need to delete the build directory in my mpp project any time I switch ABIs (device/sim). is that expected?
    p

    pardom

    3 years ago
    Are you using the podspec wrapper?
    Kris Wong

    Kris Wong

    3 years ago
    i am using the podspec that was generated
    p

    pardom

    3 years ago
    In order to avoid compatibility issues during an Xcode build, the plugin requires using a Gradle wrapper. To generate the wrapper automatically during execution of the podspec task, run it with the parameter -Pkotlin.native.cocoapods.generate.wrapper=true.
    Kris Wong

    Kris Wong

    3 years ago
    i have the gradle wrapper committed to my source repo, like an android project
    it's the same wrapper?
    p

    pardom

    3 years ago
    Nope
    Kris Wong

    Kris Wong

    3 years ago
    interesting
    i wonder why the plugin doesn't include that if it's necessary
    Kris Wong

    Kris Wong

    3 years ago
    sure seems like the same gradle wrapper
    p

    pardom

    3 years ago
    Hmm maybe I misinterpreted that section.
    i

    ilya.matveev

    3 years ago
    it's the same wrapper?
    Yes, it's the same wrapper generated by Gradle.
    I notice when using the cocoapod plugin, I need to delete the build directory in my mpp project any time I switch ABIs (device/sim). is that expected?
    No, it isn't expected. What happens if you don't delete the build directory?
    Kris Wong

    Kris Wong

    3 years ago
    then the .klib won't be regenerated for the new ABI
    and it gets skipped during linking
    i

    ilya.matveev

    3 years ago
    I cannot reproduce this behaviour. Could you share a link to your project?
    Kris Wong

    Kris Wong

    3 years ago
    unfortunately this is proprietary code
    i can try to get some logs for you if there's a certain command I can run
    i

    ilya.matveev

    3 years ago
    i can try to get some logs for you if there's a certain command I can run
    You can add the
    --debug
    flag to the Gradle command in the generated podspec. It enables verbose logging for the Gradle build started from Xcode.