Skip to content

"Unknown command: gen" even if latest cocoapods-generate gem is installed. #138

@jolasjoe

Description

@jolasjoe

I have the following list of cocoapods related gems installed:

cocoapods (1.11.2)
cocoapods-core (1.11.2)
cocoapods-deintegrate (1.0.5)
cocoapods-disable-podfile-validations (0.1.1)
cocoapods-downloader (1.5.1)
cocoapods-generate (2.2.2)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
cocoapods-try (1.2.0)

My ruby version - ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-darwin20]
As you can see in the above list cocoapods-generate (2.2.2) is installed. But, when I run pod gen I get


    WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    
[!] Unknown command: `gen`
Did you mean: env?

I couldn't understand how to apply the solution from Issue 95

Though I tried sudo 'xcode-select --switch /Applications/Xcode.app' as suggested in Issue 95 the issue still persist.

refer: Issue 95 and Issue 84

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions