React Native 기타 오류 및 버그 해결 방법

react-nativeandroidiosxcodeDVTCoreDeviceEnabledState오류에러
avatar
2025.04.10
·
2 min read

다크 모드에서 폰트 색상 흰색

다크모드를 비활성화 한다.

Android

<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">  // before
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

iOS

  <key>UIUserInterfaceStyle</key>  // add
  <string>Light</string>  // add

XCode DVTCoreDeviceEnabledState 빌드 오류

warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ITerviewClientMobile' from project 'ITerviewClientMobile')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ITerviewClientMobile' from project 'ITerviewClientMobile')

2023-04-29 21:44:14.707 xcodebuild[10832:54573] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:550BB99C-01A0-4CCD-928A-F64604A0774F, OS:16.4, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:550BB99C-01A0-4CCD-928A-F64604A0774F, OS:16.4, name:iPhone 14 Pro }
** BUILD FAILED **
  1. XCode와 React Native의 버전 충돌 문제

  2. XCode와 CocoaPod 또는 Gem의 버전 충돌 문제

sudo npx react-native upgrade
yarn
cd ios && pod install && cd ..
yarn ios

React Native의 버전을 업그레이드 해주고 Pod 모듈 설치 후 다시 실행 해준다.


iOS에서 스플래시 이미지 유지 시간 설정

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  self.moduleName = @"project";
  self.initialProps = @{};

  sleep(1); // here

  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

버전 불일치 에러

Error: adb: failed to install .../android/app/build/outputs/apk/debug/app-debug.apk: Failure
[INSTALL_FAILED_UPDATE_INCOMPATIBLE]
Package com.app signatures do not match previously installed version;
ignoring!

휴대폰의 앱을 삭제하고 다시 Build한다.







- 컬렉션 아티클