Getting beneath error whereas putting in the cocoa pods on new Mac e-book M1 professional by means of terminal:
sudo gem set up cocoapods
Password:
Constructing native extensions. This might take some time…
ERROR: Error putting in cocoapods:
ERROR: Didn’t construct gem native extension.
present listing: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Variations/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Variations/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20230310-5338-1i32qm0.rb extconf.rb
mkmf.rb cannot discover header information for ruby at /System/Library/Frameworks/Ruby.framework/Variations/2.6/usr/lib/ruby/embrace/ruby.h
You might need to put in separate bundle for the ruby improvement
atmosphere, ruby-dev or ruby-devel for instance.
extconf failed, exit code 1
Gem information will stay put in in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5 for inspection.
Outcomes logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-22/2.6.0/ffi-1.15.5/gem_make.out
Can anybody recommend what to do for cocoa pod intall on the mac e-book M1 professional?
I run the next instructions:
- sudo gem set up cocoapods (getting above error)
- /usr/bin/ruby -e “$(curl -fsSL https://uncooked.githubusercontent.com/Homebrew/set up/grasp/set up)”