cocoapods-patch icon indicating copy to clipboard operation
cocoapods-patch copied to clipboard

Unknown command: `patch`

Open aprilmintacpineda opened this issue 3 years ago • 5 comments

Hi there, I've been trying to use this for a workaround but cannot use it out of the box.

This is what I did, as per the readme

➜  ios git:(master) ✗ gem install cocoapods-patch
Successfully installed cocoapods-patch-0.0.9
Parsing documentation for cocoapods-patch-0.0.9
Done installing documentation for cocoapods-patch after 0 seconds
1 gem installed
➜  ios git:(master) ✗ pod patch create folly
[!] Unknown command: `patch`
Did you mean: search?

Is there anything else I need to do? I'm using this with React-Native by the way.

aprilmintacpineda avatar Jun 13 '21 06:06 aprilmintacpineda

Hi @aprilmintacpineda do you also have cocoa pods installed?

dcvz avatar Jul 12 '21 11:07 dcvz

@dcvz I have cocoapods installed and I get the same error and message

gerchicov-bp avatar Oct 28 '21 15:10 gerchicov-bp

@dcvz i have cocoapods installed and i also get the same error message

fdcMartino avatar Aug 02 '22 08:08 fdcMartino

I get this same error when I removed it from my gemfile. Adding it to my gemfile with cocoapod gets it to work.

jimmyeisenhauer avatar Mar 31 '23 16:03 jimmyeisenhauer

"pod" does not find the location of cocoapods-patch.

Check where it was installed then add the folder to the PATH environment variable so that when you type pod, your shell knows where to look for it.

Here's how you can do that:

Open up .bashrc or .zshrc file (depends on what shell you are using) in a text editor. Add this line at the end of file:

export PATH="$HOME/.gem/ruby/2.x.0/bin:$PATH"

("2.x.0" => change to the version you have exactly)

JimTeva avatar Aug 09 '23 09:08 JimTeva