Thread
#multiplatform
    saket

    saket

    10 months ago
    I'm trying to compile my project on macOS running on an m1 machine, but it's failing with this error:
    * What went wrong:
    A problem occurred configuring project ':common'.
    > kotlin.native.cocoapods.target property was dropped in favor of kotlin.native.cocoapods.platform and kotlin.native.cocoapods.archs. 
      Podspec file might be outdated. Sync project with Gradle files or run the 'podspec' task manually to regenerate it.
    Am I understanding the message correctly that compilation is failing because my podspec file is outdated? Running
    podspec
    task doesn't seem to change anything.
    Viacheslav Kormushkin

    Viacheslav Kormushkin

    10 months ago
    Hi, does deleting podspec file and resyncing the project help?
    saket

    saket

    10 months ago
    it unfortunately doesn't
    FWIW my podspec file is already using
    kotlin.native.cocoapods.platform
    and
    kotlin.native.cocoapods.archs
    so the deprecation warning is strange.
    Viacheslav Kormushkin

    Viacheslav Kormushkin

    10 months ago
    Then installing the pod should fix the problem. ‘pod install’ is part of the project sync so it should do the job. Please try to run ‘pod install’ manually or uninstall the kmm pod and then install again
    saket

    saket

    10 months ago
    huh that worked! I could have sworn I had already tried that before. maybe deleting podspec file did the trick. thank you!
    Shalom Halbert

    Shalom Halbert

    10 months ago
    Sounds a lot like the headaches you can have in JS world by forgetting to run
    npm install
    . There is no perfectly clear error that tells you "Please run npm install" when that's what you need to do.