오티스의개발일기

cocoapods 설치중 에러 해결 본문

에러 모음/react-native

cocoapods 설치중 에러 해결

안되면 될때까지.. 2023. 1. 3. 22:11
728x90
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 ./siteconf20230103-7169-48hhzo.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

 

 

brew 로 설치 시도

 

brew install cocoapods

 

 

 

성공함

 

 

 

sudo gem install ffi

 

 

이것또한 

 

brew install libffi

 

brew로 해결

728x90
Comments