rn 0.72 install

박경수·2025년 1월 7일
0

일반 터미널 진행

  • node 21.1.0
  • ruby 1.3.0
  1. brew uninstall
  1. brew install
  1. sudo brew install node
  2. sudo brew install watchman
  3. sudo brew install rbenv ruby-build
    (!) rbenv install 2.7.6 -> 3.1.0 으로 설치 (react native 설치과정에서 pod install 에러 발생)
  4. sudo arch -x86_64 gem install ffi 설치
  5. sudo xcode-select --switch /Applications/Xcode.app
  • xCode 선택
  1. sudo gem install activesupport -v 7.1.5.1
  • 2.7.6 이 호환되는 gem을 설치
  • 결과 react-native 설치 실패
  1. rbenv 3.1.4 설치 진행
  2. npx react-native@0.72 init Matzip --version 0.72
  • 설치 진행 = 성공

// npx react-native@0.72.6 init matZipApp --version 0.72.6 시 에러 발생
// 이유 : 해당 0.72.6 템플릿이 없다고 생각.
// 해결 : 0.72 install

✖ Installing CocoaPods
error An error occured while trying to install CocoaPods, which is required by this template.
Please try again manually: sudo gem install cocoapods.
CocoaPods documentation: https://cocoapods.org/.
info Run CLI with --verbose flag for more details.

// ruby 2.7.6 사용 이슈
sudo gem install cocoapods
Password:
ERROR: Error installing cocoapods:
The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 7.1.5.1. Try installing it with gem install activesupport -v 7.1.5.1 and then running the current command again
activesupport requires Ruby version >= 3.1.0. The current ruby version is 2.7.6.219.

profile
<>{...}</>

0개의 댓글