일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- useMemo
- iTerm2
- 갤럭시 스킨
- oh-my-zsh
- useEffect
- bottom tabs
- useRef
- 포트폴리오 사이트
- react
- 리액트 쿼리
- MonGo
- redux/toolkit
- listeners
- gitpages
- reactnative
- Drawer
- Stack
- useState
- mongoDB
- bottom tabBar
- rembg
- ReactQuery
- Hook 함수
- useCallback
- nodejs
- tabBarStyle
- 에뮬레이터 스킨
- react native
- 리액트네이티브
- 이미지 배경 지우기
- Today
- Total
프론트엔드 개발자의 개발 놀이터
RN 다양한 에러 대응 본문
1. 'value' is unavailable: introduced in iOS 12.0
node_modules/react-native/scripts/cocoapods/codegen_utils.rb 경로의 87 라인
'ios' => '11.0', 를 'ios' => '12.0’, 로 변경 후
ios 폴더 경로에서 pod install
2. [!] CocoaPods could not find compatible versions for pod "react-native-safe-area-context" ~~~
Podfile 의 platform :ios, '11.0’ 를 ’12.0’로 변경 후 pod install
3. [!] Unable to find a specification for `React-hermes` depended upon by `RNReanimated`~~~
Podfile 에
ENV['USE_HERMES'] = '0'
코드 붙여넣고 pod install
4. ~~~/ReactCommon/yoga/yoga/Yoga.cpp:2232:9: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
node->getLayout().hadOverflow() | 를
node->getLayout().hadOverflow() || 로 변경 후 저장
5. error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
use_flipper!() 를
use_flipper!({ 'Flipper' => '0.159.0' }) 로 변경
6. 안드로이드에서 toLocaleString()이 동작하지 않을 때
android/app/build.gradle 파일의
def jscFlavor = 'org.webkit:android-jsc:+' 를
def jscFlavor = 'org.webkit:android-jsc-intl:+' 로 변경 후 클린 빌드 후 재실행
7. Unrecognized font family ~~~~~
폰트의 postScriptName 을 사용하지 않아서 생기는 오류
FontDrop!
Simple and easy way to view the content of font files.
fontdrop.info
해당 사이트에서 ttf 파일을 올리고 Data 탭을 클릭해 나오는 postScriptName을 실제 font-family로 사용하면 된다.
8. Error (Xcode): Cycle inside Runner; building could produce unreliable results
TARGETS ->[Projects] -> Build Phases에서 실행 순서 정렬하고 재실행하기.
9. SendProcessControlEvent:toPid: encountered an error: Error Domain=~~ Code=8
Clean Builder Folder 후 재실행.
10. Called object type 'facebook::flipper::SocketCertificateProvider'(aka 'int') is not a function~~~
Pods > Flipper > FlipperTransportTypes.h 파일에 아래 코드 추가.
#include <functional>
'React Native' 카테고리의 다른 글
Bottom tabs Navigation listeners 등록 (0) | 2024.02.07 |
---|---|
자주 사용하는 RN 라이브러리 정리 (0) | 2024.02.03 |
안드로이드 갤럭시 에뮬레이터 스킨 적용하기 (0) | 2024.02.02 |
React Native 앱 아이콘 만들기 (0) | 2024.02.02 |
React Native 시작하기 (v 0.74.5) - 수정 24.09.16 (1) | 2024.02.02 |