https://kotlinlang.org logo
j

Jide

11/29/2020, 10:00 AM
Hi. I keep getting this error whenever I try adding a pod dependency to my project. Can anyone help? Note: I have cocoapods and cocoapods-generate installed
a

Alexey Glushkov

11/29/2020, 10:30 AM
Hi, it seems your cocoapods is outdated. Mine is 1.9.3 and it supports the gen command. Could you try to update your cocoapods?
j

Jide

11/29/2020, 10:38 AM
I had 1.10.0 then downgraded to 1.9.3.. Same result
a

Alexey Glushkov

11/29/2020, 11:48 AM
Hm, then it might mean that Android Studio runs another version of cocoapods installed on your machine. When I call
Copy code
which pod
I get
Copy code
/usr/local/bin/pod
j

Jide

11/29/2020, 1:24 PM
Tried this and got the same path
a

Artyom Degtyarev [JB]

11/30/2020, 6:43 AM
Hello, @Jide! Most probably, your installation is missing
cocoapods-generate
plugin, which have to be installed as described here. UPD: missed the note above. Got no other advice at the moment, according to https://github.com/CocoaPods/CocoaPods/issues/10043 and https://github.com/square/cocoapods-generate/issues/37#issuecomment-711410927 it’s either a new cocoapods-generate bug or something about cocoapods itself. What is your cocoapods-generate plugin version?
a

Amritansh

12/07/2020, 8:17 PM
@Jide were you able to fix this? I am getting the same error
j

Jide

12/08/2020, 8:06 AM
In my case, turned out my system was still using an outdated version of cocoapods despite installing newer ones. I found out using
pods --version.
So I had to follow some instructions online to clear everything then install again then I stopped getting the error
5 Views