Hi, maybe someone here can help and save us :sweat...
# multiplatform
l
Hi, maybe someone here can help and save us 😅 In our app, we’re using a KMM library developed by us, that library uses a cocoapod. Out of a team of 9 devs, 2 of our devs, all of a sudden, can’t seem to build the project. The reason is that iosMain does not recognize cocoapods at all. • These devs tried clearing gradle cache, deleting Android Studio, redownloading the repo, reinstalling cocoapods, etc. But nothing helps, still, cocoapods is not recognized. • cocoapods/synthetic/pods have the right pods there. Will be glad to get some help. Thanks
p
"All of the sudden" sounds like some update. Do they update, gradle, the kmm plugin, Android Studio, Xcode, MacOs, ruby lang, cocoapods itself something? Also, do you get to see some logs somewhere. So one can have an idea
👍 1
p
I know there was recently an XCode update. You will have to update XCode and possibly the simulators. Remember to restart Android Studio too!
Also check that KDoctor is still giving the all green
r
I had a problem recently and I needed to downgrade my Xcode to 15.0.0
l
So, for one of them, which is a complete mystery, he has moved to a task which did not require him to compile the KMM project and after 5 days, coming back to build KMM has worked. For the second dev, he moved to a branch which moved our Kotlin version from 1.8.20 to 1.9.21, this is when it all started for him, no other updates. He just moved to test another branch. Literally in the middle of working with another branch which worked fine. Moving back to the previous branch that worked does not work now, even after doing complete clear cache and manually deleting .gradle.
👀 2
p
I call that, ghost 👻 in the office 😃 But most likely should be cache related. If you get some logs of what doesn't work, then we could have an idea.
m
Something that works for me when iOs goes crazy is gradlew clean --refresh-dependencies && --rerun-tasks
basically, regenerate everything
also, sometimes starting up a new project from the wizard brings my machine back
Also, when facing obscure issues, always append --info or --debug to your gradle tasks. The top level logging does not show whatever happens with the secondary tools (like xcode terminal tools)
p
I do recall being involved in that type of situation and deleting one of the Xcode cache files fixes it. Unfortunately I don't recall the file name but I will look through my notes and post it here later.
thank you color 1
DerivedData
was the directory. Give it a try to deleting the
DerivedData
in Xcode
🤞 2
l
Thanks for your suggestions. Will try and let you know.
🦜 1
👍 1