[CocoaPods error]: Searching for inspections failed: undefined method `map' for nil:NilClass" - cocoapods

I have a CocoaPods error on my Mac M1. the following error from Cocoapods:Searching for inspections failed: undefined method `map' for nil:NilClass".

Solve this by run this command
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install

I solve this issue on my Mac M1 by typing this in the terminal:
sudo arch -x86_64 gem install ffi

Related

Error: To set up CocoaPods for ARM macOS, run: arch -x86_64 sudo gem install ffi

Error: To set up CocoaPods for ARM macOS, run:
arch -x86_64 sudo gem install ffi
Error running pod install
Error launching application on iPhone 12 Pro Max.
Seems like duplication link
Run this commands in terminal
arch -x86_64 sudo gem install ffi
Then inside the ios folder of your project run this command
arch -x86_64 pod install

ERROR: Loading command: install (LoadError) cannot load such file -- zlib

I need for my project ruby version 1.9.3.
It was really difficult to instal this version on my Mac(macOS Catalina 10.15.7) via rbenv (it did not work at all via rvm) But after installation all commands gem install (bundler, for example), leads to this error.
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
brew install zlib says that it has already been installed.
Ruby version was installed successfully through command
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.0)" rbenv install 1.9.3-p551
After that I reinstalled it through this command
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.0)
--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11" rbenv install 1.9.3-p551
And reinstall my Xcode from 12 version to 11 and back. Nothing worked. Please help!

Error for macos sierra install cocoapods

When i install mac os sierra, trying install cocoapods, but appear error:
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
but i already installed openssl and ruby,i really don't know is why,does anyone know?
Install Cocoapods by below 3 commands
sudo gem update --system -n/usr/local/bin
sudo gem install -n /usr/local/bin cocoapods
pod setup

Can not install cocoa pods in OSX 10.10.5

I got this error while trying the command "sudo gem install cocoapods" on OSX 10.10.5 "invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError): (some path for a file)".
I am trapped in this for some days.Can not proceed because my new project needs cocoa pods.Please help?
I have also faced same issue some days ago. What I did was "just remove the file referenced in "some path for a file"", and retry installing cocoa pods.
Just try this:
On command line type these
sudo rm "<some path for a file>"
sudo gem install cocoapods .
Now you can install cocoa pod.

getting undefined symbol: rb_Digest_SHA1_Init error on rbenv installed ruby 2.0.0-p195

I am on ubuntu 12.04 and using ruby 2.0.0-p195 enabled by rbenv v0.4.0.
when I run below,
$ruby -rdigest/sha1 -e '1'
I get this error.
/home/ktsuji/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /home/ktsuji/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /home/ktsuji/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-linux/digest/sha1.so (LoadError)
from /home/ktsuji/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
I know this is really similar to issue described here:
Faulty ruby compilation with rvm: getting 'undefined symbol: rb_Digest_MD5_Init' while running racku
but I've already tried the answer in above thread and ran below:
$ sudo apt-get install zlib1g-dev libreadline6-dev libssl-dev libxml2-dev
and even tried reinstall:
$ sudo apt-get install --reinstall zlib1g-dev libreadline6-dev libssl-dev libxml2-dev
$ (rbenv uninstall -f 2.0.0-p195 && rbenv install 2.0.0-p195)
but had no luck. I've also tried other ruby versions with rbenv:
1.8.7-p371 works fine.
1.9.3-p429 got similar error as above.
Any idea on resolving this issue?

Resources