728x90
반응형

React Native 113

[React Native - android] Execution failed for task ':app:checkDebugAarMetadata'

* react-native 버전을 [0.61.5 -> 0.64.2] 로 변경 후, android 빌드 중 발생한 에러 RN 빌드 시 자동으로 Android 30 을 타겟하는 androidx.core:core:1.7.0-alpha01 로 빌드하기 때문이라고 함 androidXCore 버전을 지정해준다. # android > build.gradle buildscript { ext { buildToolsVersion = "29.0.3" minSdkVersion = 23 compileSdkVersion = 29 targetSdkVersion = 29 ndkVersion = "20.1.5948944" kotlin_version = "1.5.0" androidXCore = "1.5.0" } * 참고 : https:..

[React Native - ios/android] Error: Unable to resolve module stream from .../node_modules/cipher-base/index.js: stream could not be found within the project.

* react-native 버전을 [0.61.5 -> 0.63.4] 로 변경, ios 빌드 완료 후 실행 중 발생한 에러 reat native 0.63.4 버전이 stream 패키지를 가져오지 못해서 발생한 이슈라고 함 stream 을 별도로 설치해서 해결 npm i --save stream * 참고 : https://github.com/aws-amplify/amplify-js/issues/153 * ios 에서는 아래와 같이 에러 발생

[React Native - ios] 79 duplicate symbols for architecture arm64

npm i react-native-cli -g * react-native 버전을 [0.61.5 -> 0.63.4] 로 변경 후, ios 빌드 중 발생한 에러 다양한 해결법에 대한 이야기가 있지만, 다른 방법들은 안되고 아래 방법으로 해결 [Pods > TARGETS > TcpSockets > Build Phases > Compile Sources] 에 가면 CocoaAsyncSocket 이 있는데 해당 부분을 삭제 * 참고 : https://github.com/Rapsssito/react-native-tcp-socket/issues/61#issuecomment-653881488 ↓↓↓↓↓ pod update 할 때마다 삭제해줘야 하기에 근본적인 해결책은 아니다. 그러다 ~/Library/Caches/Co..

[React Native - ios] Undefined symbol: _swift_getFunctionReplacement & Undefined symbol: _swift_getOrigOfReplaceable

* react-native 버전을 [0.61.5 -> 0.63.4] 로 변경 후, ios 빌드 중 발생한 에러 나의 경우에는 아래의 [Don't Dead-strip Inits and Terms] 부분을 [Yes] 로 변경하니 빌드가 되었다 * 참고 : https://stackoverflow.com/questions/66079852/xcode-react-native-undefined-symbol-swift-getfunctionreplacement * 다른 케이스 참고 : https://github.com/react-native-community/upgrade-support/issues/25

[React Native - ios] Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')

* react-native 버전을 [0.61.5 -> 0.63.4] 로 변경 후, ios 빌드 중 발생한 에러 아래와 같이 변경 후 해결 * 참고 : https://github.com/facebook/flipper/issues/834 # 변경 전 use_flipper!({ 'Flipper' => '0.74.0' }) # 변경 후 use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })

[React Native - android] react-native-firebase_app:compileDebugJavaWithJavac FAILED

* react-native 버전을 [0.61.5 -> 0.63.4] 로 변경 후 빌드 중 발생한 에러 > Task :react-native-firebase_app:compileDebugJavaWithJavac FAILED ... /node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppInitProvider.java:25: error: cannot find symbol BuildConfig.APPLICATION_ID + ".reactnativefirebaseappinitprovider"; ^ symbol: variable APPLICATION_ID lo..

[React Native - ios] gyp: No Xcode or CLT version detected!

xcode 버전을 11 -> 12 로 변경한 후, npm install 시 아래와 같은 에러가 발행 gyp: No Xcode or CLT version detected! gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit xcode-select 를 재설치 해야함 1. 설치된 경로 찾기 xcode-select --print-path 나의 경우는 ' /Library/Developer/CommandLineTools ' 경로임 2. 삭제 sudo rm -r -f /Library/Developer/CommandLineTools 3. 재설치 xcode-sel..

[React Native - android] app crashes without any error log

react-native run-android 실행 시, 빌드는 성공되었는데 앱이 실행되면서 어떠한 error log 도 없이 앱이 crash 나서 종료됨 * 참고 : https://stackoverflow.com/questions/49352114/react-native-app-crashes-without-any-error-log 아래와 같이 했을 시 앱이 정상 실행 됨 1. 단말기에서 앱 실행 후 > crashe 나기 전 Metro 에서 "d" 를 클릭 2. 단말기에서 "debug" 클릭 >앱 재실행 하지만 debug 모드를 종료하면 앱이 crashe 나면서 종료됨 ↓↓↓↓↓ react native 에서 가이드해주는 대로, 아래처럼 logcat 에 필터를 걸어서 찍어보아도 나오지 않음 adb logcat..

728x90
반응형