cocoapods 설치시 ruby 버전 지원 충돌

입질쾌감 물때표
% sudo gem install cocoapods

Fetching addressable-2.8.4.gem
Fetching ruby-macho-2.5.1.gem
Fetching fourflusher-2.3.1.gem
Fetching public_suffix-4.0.7.gem
Fetching colored2-3.1.2.gem
Fetching nap-1.1.0.gem
Fetching gh_inspector-1.1.3.gem
Fetching escape-0.0.4.gem
Fetching rexml-3.2.5.gem
Fetching nanaimo-0.3.0.gem
Fetching claide-1.1.0.gem
Fetching atomos-0.1.3.gem
Fetching xcodeproj-1.22.0.gem
Fetching molinillo-0.8.0.gem
Fetching cocoapods-try-1.2.0.gem
Fetching netrc-0.11.0.gem
Fetching cocoapods-trunk-1.6.0.gem
Fetching cocoapods-search-1.0.1.gem
Fetching cocoapods-plugins-1.0.0.gem
Fetching cocoapods-downloader-1.6.3.gem
Fetching cocoapods-deintegrate-1.0.5.gem
Fetching ffi-1.15.5.gem
Fetching ethon-0.16.0.gem
Fetching typhoeus-1.4.0.gem
Fetching concurrent-ruby-1.2.2.gem
Fetching httpclient-2.8.3.gem
Fetching algoliasearch-1.27.5.gem
Fetching fuzzy_match-2.0.4.gem
Fetching tzinfo-2.0.6.gem
Fetching i18n-1.14.1.gem
Fetching activesupport-7.0.6.gem
Fetching cocoapods-core-1.12.1.gem
Fetching cocoapods-1.12.1.gem
Successfully installed public_suffix-4.0.7
Successfully installed addressable-2.8.4
Successfully installed ruby-macho-2.5.1
Successfully installed nap-1.1.0
Successfully installed gh_inspector-1.1.3
Successfully installed fourflusher-2.3.1
Successfully installed escape-0.0.4
Successfully installed colored2-3.1.2
Successfully installed rexml-3.2.5
Successfully installed nanaimo-0.3.0
Successfully installed claide-1.1.0
Successfully installed atomos-0.1.3
Successfully installed xcodeproj-1.22.0
Successfully installed molinillo-0.8.0
Successfully installed cocoapods-try-1.2.0
Successfully installed netrc-0.11.0
Successfully installed cocoapods-trunk-1.6.0
Successfully installed cocoapods-search-1.0.1
Successfully installed cocoapods-plugins-1.0.0
Successfully installed cocoapods-downloader-1.6.3
Successfully installed cocoapods-deintegrate-1.0.5
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Successfully installed ethon-0.16.0
Successfully installed typhoeus-1.4.0
Successfully installed concurrent-ruby-1.2.2
Successfully installed httpclient-2.8.3
A new major version is available for Algolia! Please now use the https://rubygems.org/gems/algolia gem to get the latest features.
Successfully installed algoliasearch-1.27.5
Successfully installed fuzzy_match-2.0.4
Successfully installed tzinfo-2.0.6
Successfully installed i18n-1.14.1
ERROR:  Error installing cocoapods:
	The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.4. Try installing it with `gem install activesupport -v 6.1.7.4` and then running the current command again
	activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

Ruby 버전이 현재 2.6.x가 설치 되어 있는데, cocoapods를 설치하려면 2.7.0 이상의 버전이 필요하다고 하는것이라 안내해주는대로 “sudo gem install activesupport -v 6.1.7.4″를 실행해서 문제를 해결해 준다.

% sudo gem install activesupport -v 6.1.7.4
Password:
Fetching zeitwerk-2.6.8.gem
Fetching activesupport-6.1.7.4.gem
Successfully installed zeitwerk-2.6.8
Successfully installed activesupport-6.1.7.4
Parsing documentation for zeitwerk-2.6.8
Installing ri documentation for zeitwerk-2.6.8
Parsing documentation for activesupport-6.1.7.4
Installing ri documentation for activesupport-6.1.7.4
Done installing documentation for zeitwerk, activesupport after 1 seconds
2 gems installed

이후에는 문제없음!!

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다