I'm trying to compile my project on macOS running ...
# multiplatform
s
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
Hi, does deleting podspec file and resyncing the project help?
s
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
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
huh that worked! I could have sworn I had already tried that before. maybe deleting podspec file did the trick. thank you!
👍 1
s
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.