[CocoaPods] ERROR: Error installing cocoapods:

JIN WOO Park (PFXStudio)
2 min readMar 4, 2020

--

cocoapods 설치가 안 되는 문제 발생

ERROR:  Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.12.2/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20200304-879-qsurux.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
extconf failed, exit code 1Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.12.2 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.12.2/gem_make.out

루비/젬 재설치 하고 맥 포멧하고 생쇼를 다했음…

결국 이 두 명령어로 해결…

xcode-select --install
sudo gem install -n /usr/local/bin cocoapods

내 시간 돌리도…. 😭😭😭

--

--

Responses (1)