Programming/React Native

x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

통통만두 2021. 5. 4. 10:08
반응형
The following build commands failed:
        CompileC /Users/kmbaek/Library/Developer/Xcode/DerivedData/modootax-cdirmwotrrparabvhrznznevwjlp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/ConnectionContextStore.o /Users/kmbaek/GDL/ModooTax/workspace/modootax-app/ios/Pods/Flipper/xplat/Flipper/ConnectionContextStore.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

React Native를 윈도우 환경에서 안드로이드만 개발하다보니 몰랐는데, 이번에 MAC환경에서 IOS를 빌드해보려고 했더니, 위와 같은 에러가 발생하여서 고생 많이 했습니다.

스택 오버플로우나 국내외 블로그 글들을 찾아봤는데 저와 맞는 해결책이 없었습니다.

그러다가 결국 찾은 해결책이 flipper을 사용하지 않는거였습니다. flipper에 대해서는 검색해보시면 나올 것 같으니 참고하시면 될 것 같고, 저는 flipper을 사용하지 않기에 아래와 같이 해결했습니다.

Podfile - before

# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()

post_install do |installer|
react_native_post_install(installer)
end

 

Podfile - after

# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# use_flipper!() <-- here

post_install do |installer|
react_native_post_install(installer)
end

 

위와 같이 Podfile 을 수정하신 다음, 아래와 같이 해주시면 됩니다.

pod update
npm start --reset-cache

 

저와 같은 현상을 겪고 계신분들에게 도움이 되었으면 좋겠습니다. 

 

추가

https://github.com/facebook/react-native/issues/30836#issuecomment-774701342

use_flipper!({ 'Flipper' => '0.74.0' })

여기서는 위와 같이 하는 방법을 얘기하네요.

cd ios
pod deintegrate
pod install

이런 방법도 있으니 참고하세요~

반응형