Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown command: patch #11

Open
aprilmintacpineda opened this issue Jun 13, 2021 · 5 comments
Open

Unknown command: patch #11

aprilmintacpineda opened this issue Jun 13, 2021 · 5 comments

Comments

@aprilmintacpineda
Copy link

aprilmintacpineda commented Jun 13, 2021

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
Copy link
Contributor

dcvz commented Jul 12, 2021

Hi @aprilmintacpineda do you also have cocoa pods installed?

@gerchicov-bp
Copy link

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

@fdcMartino
Copy link

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

@jimmyeisenhauer
Copy link

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

@JimTeva
Copy link

JimTeva commented Aug 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants