https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

saket

11/16/2021, 6:06 AM
I'm trying to compile my project on macOS running on an m1 machine, but it's failing with this error:
Copy code
* 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.
v

Viacheslav Kormushkin

11/16/2021, 6:08 AM
Hi, does deleting podspec file and resyncing the project help?
s

saket

11/16/2021, 6:10 AM
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.
v

Viacheslav Kormushkin

11/16/2021, 6:14 AM
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
s

saket

11/16/2021, 6:22 AM
huh that worked! I could have sworn I had already tried that before. maybe deleting podspec file did the trick. thank you!
👍 1
s

Shalom Halbert

11/16/2021, 8:49 AM
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.
7 Views