j

    Jide

    1 year ago
    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
    Alexey Glushkov

    Alexey Glushkov

    1 year ago
    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

    1 year ago
    I had 1.10.0 then downgraded to 1.9.3.. Same result
    Alexey Glushkov

    Alexey Glushkov

    1 year ago
    Hm, then it might mean that Android Studio runs another version of cocoapods installed on your machine. When I call
    which pod
    I get
    /usr/local/bin/pod
    j

    Jide

    1 year ago
    Tried this and got the same path
    Artyom Degtyarev [JB]

    Artyom Degtyarev [JB]

    1 year ago
    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

    1 year ago
    @Jide were you able to fix this? I am getting the same error
    j

    Jide

    1 year ago
    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