Skip to content

초반 개발 환경 설정 중에 npx react-native init MyFirstCLI 에서 막혔습니다. #4

Answered by Alchemist85K
prostars asked this question in Q&A
Discussion options

You must be logged in to vote

안녕하세요, @prostars

어느정도 비슷한 상황을 재현하고 해결했습니다.
제가 재현하고 해결한 환경은 다음과 같습니다.

macOS: 11.2
xcode: 12.4
node: 12.20.1 / 14.15.1
RN: 0.63.x

먼저 12.20.1에서 CLI 를 이용한 프로젝트 생성시 @prostars 님과 동일한 문제를 만났습니다.
이 문제는 다음과 같이 해결했습니다.

cd ios
rm Podfile.lock
pod deintegrate
pod install --repo-update
cd ..

추가적으로, node 14 버전에서는 CLI를 이용한 프로젝트 생성시 에러가 발생하지 않았습니다.

다음으로 프로젝트 생성후 ios 빌드 에러 발생 부분입니다.
xcode에서 확인하면 flipper와 관련된 에러가 발생하는 것을 확인할 수 있습니다.
이 문제는 Podfile을 수정해서 해결할 수 있습니다.
{project}/ios/Podfile에서 use_flipper! 부분을 다음과 같이 수정합니다.

use_flipper!({ 'Flipper-Folly' => '2.3.0' })

혹은 다음과 같이 flipper와 관련된 부분을 모두 주석처리해도 됩니다.

# use_flipper!
# post_install do |installer|
#   flipper_post_install(installer)
# end

Podfile 수정이 완…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@prostars
Comment options

@prostars
Comment options

Comment options

You must be logged in to vote
1 reply
@prostars
Comment options

Answer selected by prostars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants