맥북을 구매해서 pod를 설치하는데 Cocoapod를 먼저 설치했어야 했다
sudo gem install cocoapods
The last version of securerandom (>= 0.3) to support your Ruby & RubyGems was 0.3.2. Try installing it with `gem install securerandom -v 0.3.2` and then running the current command again securerandom requires Ruby version >= 3.1.0. The current ruby version is 2.6.10.210.
먼저, Ruby는 객체 지향 프로그래밍 언어이고 Cocoapod는 Ruby로 작성된 Ruby gem 이다
그렇기에 cocoapod를 설치하면서 ruby 버전 이슈가 발생할 수 있다고 보면 된다.
위 오류 중 securerandom gem도 마찬가지로 ruby의 버전 호환성 문제에서 오류가 발생했다.
securerandom은 ruby 3.1.0 이상에서만 정상적으로 동작한다.
ruby 버전을 올리기로 했다.
ruby 버전을 올리기 위해 rvm을 설치했고,
아래 명령어를 실행했다.
rvm install 3.1.0
이번엔 brew가 없다는 오류
이전에 올린 게시글을 참고해서 brew를 설치했다
https://jpointofviewntoe.tistory.com/86
[mac] homebrew 설치 및 제거
전진시입니다 지금 react-native 환경을 셋팅하면서 난항을 겪고 있어요 ruby 2.7.5 를 설치해야하는데 설치를 못하고 있습니다 ! 으악 homebrew 설치 방법은 간단해요 https://brew.sh/ Homebrew The Missing Package
jpointofviewntoe.tistory.com
'개발노트 > iOS' 카테고리의 다른 글
[Xcode]CocoaPod 라이브러리 추가 오류: Not Found libarclite_iphoneos (0) | 2024.12.17 |
---|---|
[iOS] Could not attach to pid 오류 해결 (0) | 2024.07.30 |
[iOS] IOS 앱 배포 시 언어 설정 변경 (0) | 2024.01.15 |
iOS : DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead (1) | 2023.11.26 |
[SWIFT] 앱 설정으로 이동하기 (1) | 2023.11.18 |
댓글