본문 바로가기
에러해결/React Native

세팅 에러

by Programmer.Junny 2025. 3. 25.

1. 루비 버전 이슈

sudo gem install cocoapods

cocoapods 설치 시 루비 버전에 대한 에러가 발생한다.

내용을 보면 루비 버전이 최소 N버전 이상을 설치하라고 로그가 뜬다.

brew install ruby-build
brew install rbenv
rbenv install [루비설치버전]
rbenv global [루비설치버전]

위와 같이 진행해도 루비버전이 바뀌지 않았다면?

code ~/.zsh

zsh를 열고

eval "$(rbenv init - zsh)"

위의 명령어를 추가한다.

source ~/.zshrc

위 명령어로 설정이 적용된다.

2. Error installing boost (boost 체크섬 이슈)

npm run start

으로 리액트 네이티브를 실행하고 'i' 를 눌러 아이폰 시뮬레이터를 실행하면 에러가 발생한다. (boost의 체크섬 문제)

node_modules - react-native - third-party-podspecs 경로에 있는 boost.podspec 파일을 열고

spec.source 부분의 http 부분의 url을 아래 url로 변경한다.

https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2

https://github.com/facebook/react-native/issues/42110

 

[Error installing boost] Verification checksum was incorrect, expected · Issue #42110 · facebook/react-native

Description [!] Error installing boost Verification checksum was incorrect, expected f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41, got 5e89103d9b70bba5c91a794126b169cb67654be205...

github.com

3. IOS 시뮬레이터에서 앱이 실행되지 않는 이슈

3.1. Unable to boot device in current state: Booted

시뮬레이터 - setting - Simulator lifetime - When Simulator starts boot the most recently used simulator비활성화 해준다.

3.2. FlipperKit 타입 불일치 이슈

xcode 를 통해 빌드를 직접하면 아래와 같은 에러가 뜰 수 있다.

FlipperPlatformWebSocket.mm:58:46 Called object type 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer

Podfile 파일을 열어 FlipperKit 비활성화

flipper_config = FlipperConfiguration.disabled

위와 같이 수정했다면 pod을 다시 설치한다.

pod install --repo-update

이후 다시 xcode를 열고 해당 앱을 빌드하면 제대로 프로젝트가 실행된다.

최근댓글

최근글

skin by © 2024 ttuttak