doublesymmetry / cocoapods-patch

Patch CocoaPod dependencies without forking ✨
MIT License
69 stars 13 forks source link

Unknown command: `patch` #11

Open aprilmintacpineda opened 3 years ago

aprilmintacpineda commented 3 years ago

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.

dcvz commented 3 years ago

Hi @aprilmintacpineda do you also have cocoa pods installed?

gerchicov-bp commented 3 years ago

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

fdcMartino commented 2 years ago

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

jimmyeisenhauer commented 1 year ago

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

JimTeva commented 1 year ago

"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)