더 편한 메모 작성을 위해 miryang-dev.tistory로 이사했습니다.
SupabaseScalaGithubReact NativeprojectdiscoveryRemixRescriptPurescriptnpmCloudflareReactNext.jsGOHyper-VTiberoGitAlgorithms, 2020년

React Native iOS CodePush 코드푸시 설정

August 11, 2023

패키지 설치

yarn add react-native-code-push

pod install

cd ios && pod install && cd ..

코드 추가 및 수정

AppDelegate.mm
#import <CodePush/CodePush.h> // add

...

#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
  return [CodePush bundleURL]; // replace
Info.plist
	<key>CodePushDeploymentKey</key> // add
	<string>${CODEPUSH_KEY}</string> // add

xcode로 프로젝트 열기

xed ./ios

Targets -> app name -> Build Settings -> Add User-Defined Setting -> CODEPUSH_KEY 추가

  • app center -> Distribute -> Codepush에서 키 확인 및 작성

refer : https://learn.microsoft.com/en-us/appcenter/distribution/codepush/rn-get-started#ios-setup