Warning:
IPHONEOSDEPLOYMENTTARGET is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99
react native 실행 하자마자 처음 맞이한 오류.
use_flipper ~ post_install를 주석 처리하면 된다는 글을 봤지만
그래도 해결하고 싶어서 어찌어찌 구글링을 해봤다.
코드는 실제로 코드는 실제로 iOS 8.0 특정에 의존하지 않는데 지원되는 배포 대상 버전의 범위는 9.0-14.0.99이라고 이 글에선 나와 있어서 어리둥절했다.
모든 포드 참조에 대한 배포 대상을 9.0으로 설정하려다가 값을 제거해도 된다고 나와있어서 제거했다
배포 대상 9.0 설정
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
배포 대상 값 제거
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
ios/Podfile파일에서 해당 내용으로 수정 후 npx pod install을 진행하고 다시 yarn ios을 했다.
FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
세상에 배포 대상 값을 제거하니 새로운 에러가 발생했다.
이 글에서는 use_flipperPodfile for iOS 프로젝트 때문입니다. "Flipper-Follyuse_flipper를 사용하여 버전 을 표시 해야"라고 나와있어서 use_flipper!({ 'Flipper-Folly' => '2.5.3' })
으로 변경했지만 그래도 에러가 해결되지 않았다.
그래서 로그를 좀 보니 compiler (in target 'Folly' from project 'Pods') ~~ 이 찍혀있었다.
다시 구글링을 해보니 다른 것도 버전을 표시하라고 해서
Flipper관련된 것을 버전 표시해보자!
use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
ios/Podfile파일에서 해당 내용으로 수정 후 npx pod install을 진행하고 다시 yarn ios을 했다.
짜란.. 이때부터 약간 왈칵 드디어! 이러고 기다린 끝에
앱이 떴습니다~ ㅎㅎㅎ
Flipper는 iOS Android React-Native 에서 사용할수 있는 디버깅툴이라고 한다.
'IT > 기록' 카테고리의 다른 글
Firebase project 생성하기 (0) | 2021.06.05 |
---|---|
git push author 변경하기 (0) | 2021.06.03 |
NodeJS에서 엑셀 파일 읽고 쓰기! #1 (0) | 2021.06.01 |
React Native에서 사용자 로그인 상태 유지는 어떻게? (0) | 2021.05.28 |
머신러닝 02. (0) | 2020.09.15 |