[React Native - iOS] 빌드 오류 발생
react-native 개발 도중 프로젝트를 복사하거나 이동하는 경우가 발생하는데, 이 때 폴더를 복사 또는 이동한다.
안드로이드에서는 별다른 오류가 발생하지 않고 잘 빌드가 되는데, iOS는 아래 오류가 발생하면서 빌드가 실패한다.
error: PCH was compiled with module cache path '/aaa/ios/build/ModuleCache/15IKYQ49IXHLP', but the path is currently '/bbb/ios/build/ModuleCache/15IKYQ49IXHLP'
1 error generated.
프로젝트 폴더에서 ios/build/ModuleCache 폴더를 삭제를 한 후 다시 빌드를 시도를 하면 정상적으로 빌드가 진행이 된다.
Android / iOS Icon & Splash Image Size 정리
* Android
| Icon | Splash (Portrait) |
LDPI |
36 x 36 |
200 x 320 |
MDPI |
48 x 48 |
320 x 480 |
HDPI |
72 x 72 |
480 x 800 |
XHDPI |
96 x 96 |
720 x 1280 |
XXHDPI |
144 x 144 |
960 x 1600 |
XXXHDPI | 192 x 192 | 1280 x 1920 |
Store | 512 x 512 |
|
* iOS
|
Icon | Splash (Portrait) |
iPhone 4 이하 | 120 x 120 (@2x, Required) 180 x 180 (@3x) | 320 x 480 |
iPhone 4S |
640 x 960 |
|
iPhone 5/5S/SE |
640 x 1136 |
|
iPhone 6/7/8 |
750 x 1334 |
|
iPhone 6/7/8 Plus |
1242 x 2208 |
|
iPhone X | 1125 X 2436 | |
iPad |
76 x 76 |
768 x 1024 |
iPad Retina |
152 x 152 (@2x, Required) |
1536 x 2048 |
iPad 9.7" | ||
iPad mini 4 7.9" | ||
iPad Pro 10.5" | 167 X 167 (@3x) | 1668 X 2224 |
iPad Pro 12.9" |
2048 x 2732 |
|
App Store | 1024 X 1024 |
|
https://developer.apple.com/library/content/qa/qa1686/_index.html
* 앱 아이콘 생성
'Programing' 카테고리의 다른 글
CRC32 계산 (0) | 2020.11.18 |
---|---|
[Eclipse] Big sur 업데이트 후 이클립스 실행 오류 (0) | 2020.11.16 |
SSH로 파일 다운로드 (0) | 2015.01.26 |
유니티에서 소프트 키 숨기기 (2) | 2014.10.26 |
git에서 cache 제거하기 (0) | 2014.10.02 |
[React Native - iOS] Apple Mach-O Linker failure
* React-Native 개발 도중 npm에서 필요한 모듈을 설치 중 pod 하여서 빌드를 하는데 오류가 발생
ld: framework not found React
clang: error: linker command failed with exit code 1 (use -v to see invocation)
0. xCode에서 오류가 발생한 프로젝트 열기
- Pod 사용시, ~~~.xcworkspace를 열기
1. 프로젝트 설정 화면을 선택
2. 수정할 Targets 선택
3. Build Settings 선택
4. Other Linker Flags 내용 수정
-lc++, -ObjC 를 추가
'Programing > ReactNative' 카테고리의 다른 글
[React Native - Android] Unable to load scripts from assets 'index.android.bundle' (0) | 2018.01.23 |
---|---|
[React Native-Android] Could not resolve all dependencies for configuration ':*** :_debugCompile'. (0) | 2017.06.26 |
[React Native] Multiple dex files define (0) | 2016.08.25 |
[React Native] 특정 버전으로 Project 초기화하기 (0) | 2016.07.31 |
[React Native] Androidd에서 GIF 이미지 출력하기 (0) | 2016.07.31 |