개발일지/개발일지! error out🙅
[react-native]ERROR: Error installing cocoapods:
-제이리
2022. 12. 1. 21:54
728x90
320x100
발생상황: react native 개발환경 셋업중, cocoapods설치 중..
sudo gem install cocoapods
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20221201-5959-xlun04.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-22/2.6.0/ffi-1.15.5/gem_make.out
cocoapods를 인스톨하는데 계속 오류가 났다.
1차시도 sudo gem install cocoapods ->실패
2차시도 brew install cocoapods -> 실패
마지막으로
xcode-select --install
sudo gem install -n /usr/local/bin cocoapods
를 시도해서 설치했다.. 휴..
728x90
320x100