!] Xcode - develop for iOS and macOS (Xcode 12.4)
✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is
different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods.
To re-install see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.
cocoapods 1.11.2 is already installed and up-to-date.
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
Related
terminal image
Now, cocoapods's version is 1.11.3 and I want to downgrade with 1.11.2
I used these code to downGrade xcode version.
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.11.2
However, If I used this code, still cocoapods's version is 1.11.3
pod --version
I want to know what should I do now...
Now, cocoapods's version is 1.11.3 and I want to downgrade with 1.11.2 !
Please help me..
I am using Appodeals ads integration on Unity LTS 2017.4.40f1 on mac os x Mojave 10.14.5.
The integration fails with an error in the Unity iOS Resolver window:
Installing CocoaPods...
gem install cocoapods --user-install
WARNING: You don't have /Users/developer/.gem/ruby/2.3.0/bin in your PATH.
gem executables will not run
ERROR: Error installing cocoapods:
zeitwerk requires Ruby version >= 2.5
Also in the unity console I get this error: "Failed to Install CocoaPods for the current user."
I have tried many things and all failed.
I have tried updating my ruby with brew but Unity does not recognize it.
When I type in terminal: ruby -v
I get: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18]
Unity still can't see the new Ruby
I tried to install cocoapods manually many times, it worked well but it's still not recognizable by Unity/Appodeal.
I tried to go with a terminal to the Unity project directory and install cocoapods with --user-install switch, and still nothing changed
I tried adding Ruby paths to $PATH, but nothing changes.
I tried multiple Ruby versions, including 2.3.0, 2.5.0 and 2.7.0
I restarted the system and Unity many times, and also tried reimporting the plugin
Tried multiple solutions from web, but nothing works.
My question is: how to resolve this problem so Appodeal works on my Unity 2017?
Extra question: why seemingly nothing works, why even with cocoapods installed Unity Appodeal still complains?
There is a flag that needs to be added --with-libyaml-dir=$(brew --prefix libyaml) --with-openssl-dir=$(brew --prefix openssl. Homebrew runs in the system context and so can't update ~/Library.
Steps are on this markdown: https://gist.github.com/RedenticDev/2c71869492ba2740a3725216898c522a
I had the same issue, though with different software versions. Unity 2020.3 on Big Sur (Mac OS 11).
Your other easier option might be to upgrade your Mac OS and then the version of Ruby will also be implicitly upgraded as well.
I'm trying to add a simple CocoaPods dependency to a test kmm project as explained in this tutorial
Unfortunately, I'm getting this error
Executing of 'pod gen --platforms=ios --gen-directory=/Users/par/code/my/MyApplication/shared/build/cocoapods/synthetic/IOS --sources=https://cdn.cocoapods.org /Users/par/code/my/MyApplication/shared/shared.podspec' failed with code 1 and message:
[!] cocoapods-generate requires CocoaPods >= 1.5.0
How to fix this error?
My setup
cocoapods version: 1.11.2
cocoapods-generate version: 1.4.1
Mac OS Big Sur 11.6
It looks like the version of cocoapods-generate is obsolete. The latest version of the script is 2.2.2
No matter how hard I've tried, I was not able to upgrade cocoapods-generate past 1.4.1
I'm installing it with this command
sudo gem install cocoapods-generate
I have found this piece of info in this issue
The underlying error is that cocoapods-generate at version 2.2.1 cannot be installed on ruby 3, because it depends on cocoapods-disable-podfile-validations ~> 0.1.1,and the only version of cocoapods-disable-podfile-validations satisfying that (0.1.1) needs ruby ~> 2.1.
Have no idea how to solve this puzzle.
Solved this by downgrading ruby to 2.6
brew install rvm
curl -sSL https://get.rvm.io | bash
rvm install ruby-2.6.0
had to run this:
gem install cocoapods-generate
I am not able to install ruby 2.1.2 on MacBook Pro (16-inch, 2019). I am getting below issue
Downloading ruby-2.1.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
Installing ruby-2.1.2...
WARNING: ruby-2.1.2 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
ruby-build: using readline from homebrew
BUILD FAILED (macOS 11.2.3 using ruby-build 20210309)
Inspect or clean up the working tree at /var/folders/m8/2rpyp98n6kn0f5628315l8jr0000gn/T/ruby-build.20210319190843.1296.BVeODj
Results logged to /var/folders/m8/2rpyp98n6kn0f5628315l8jr0000gn/T/ruby-build.20210319190843.1296.log
Last 10 log lines:
installing capi-docs: /Users/shodhangk/.rbenv/versions/2.1.2/share/doc/ruby
The Ruby openssl extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/shodhangk/.rbenv/versions/2.1.2
--with-openssl-dir=/usr/local/opt/openssl#1.1
--with-readline-dir=/usr/local/opt/readline
CC=clang
LDFLAGS=-L/Users/shodhangk/.rbenv/versions/2.1.2/lib
CPPFLAGS=-I/Users/shodhangk/.rbenv/versions/2.1.2/include
I looked at this Ruby installation (2.2.2) fails in macOS Big Sur and tried with all below solutions but still, the same issue exists.
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl#1.0/1.0.2t rbenv install 2.1.2
CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.1.2
Even tried by slightly changing the ruby versions to 2.1.x and 2.2.x. But no difference.
I'm trying to install Ruby-1.9.2-head on a Mac running OS X 10.6.8 and Xcode 3.2.5. Whenever I run the command "rvm install ruby-1.9.2-head", I get an error during the "#configuring" part. The configure.log file says:
./configure --prefix=/Users/me/.rvm/rubies/ruby-1.9.2-head --enable-shared --disable-install-doc --with-libyaml-dir=/Users/me/.rvm/usr
configure: error: cannot run /bin/sh tool/config.sub
I've tried completely removing rvm and then re-installing the stable version (1.10.0) according to the instructions on Wayne's RVM homepage to no avail. Also, I do already have the 1.8.7 version of Ruby (which came with the machine) still installed.
I was successful in installing rvm and Ruby on two other machines that are also running OS X 10.6.8 but they were running Xcode 3.2.6. Do I perhaps need to upgrade Xcode?
Thanks.
rvm notessays you just need Xcode Tools Version 3.2.1 (1613) or later to install rvm.
I can remember I had to install the latest XCode version since my Lion upgrade to install ruby 1.9.2. Although you running OS X 10.6.8 and not Lion, there should be a new XCode version for you to download.