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
'개발일지 > 개발일지! error out🙅' 카테고리의 다른 글
[react-native]error warn Multiple Podfiles were found (0) | 2022.12.02 |
---|---|
(mac) ruby 버전 업데이트 하기 (1) | 2022.12.02 |
[error]404 (Not Found) / Uncaught (in promise) (0) | 2022.09.08 |
[TS]에러해결(Argument of type '' is not assignable to parameter of type ''. Type '' is not assignable to type ''. ) (0) | 2022.05.30 |
[React] 단위표시(콤마)가 있는 숫자 계산하기 (0) | 2022.05.24 |
댓글