-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support installing using brew #59
Comments
I have the same issue with my M1! |
Any update on this? Cannot use cocoapods-art on Apple chips and it is a major blocker for us. |
Same issue here... |
I had the same issue but I found a way to get it working. For this to work I have assumed you have already installed cocoapods via brew. The following script will copy over the required files from the global Ruby installation: #!/bin/zsh
RUBY_ROOT="/Library/Ruby/Gems/2.6.0"
COCOA_ROOT="/opt/homebrew/Cellar/cocoapods/1.11.3/libexec"
cp -R "$RUBY_ROOT/gems/$1" "$COCOA_ROOT/gems/"
cp "$RUBY_ROOT/specifications/$1.gemspec" "$COCOA_ROOT/specifications/"
sudo chown -R $USER "$COCOA_ROOT/gems/$1"
sudo chown $USER "$COCOA_ROOT/specifications/$1.gemspec" Now you can verify if you have done everything correctly by running To fix the errors we need to edit the
Comment them out by adding a # before each line.
The other edit we have to do is to change the version number from Now the command |
Same issue here. Is there anyone solved the problem without modifying gem file)? Thank you. |
Cant install cocoapods-art too. On Mac with M1 |
you must execute the script with an argument, in this case the name of the plugin -> |
I used the script without success
the gem is not there so how can I copy it? I tired before
|
You must have cocoapods and cocoapods art installed with the same method So you can install cocoapods and cocoapods with brew ( change your Path with .zshrc file if you do that and verify command « which pod » return the good one) fast way: |
Hi @Brent-rb , I tried your solution but while executing cp "$RUBY_ROOT/specifications/$1.gemspec" "$COCOA_ROOT/specifications/" I am getting response like "cp: /Library/Ruby/Gems/2.6.0/specifications/.gemspec : No such file or directory" sudo chown $USER "$COCOA_ROOT/specifications/$1.gemspec" |
Don’t follow this instructions you not must copy this files. it’s not necessary |
With the M1 Apple Silicon, you have to use brew for installing cocoapods for native installation. Due to that, installing cocoapods-art module using gem wouldn't be recognized by the cocoapods version installed through brew.
It would be great to have a way to install cocoapods-art using brew to address the issue, what does everyone think about that?
The text was updated successfully, but these errors were encountered: