[RN] 라이브러리 버전 올리기

ocean·2022년 10월 18일
0

mayacrew

목록 보기
1/1

라이브러리 버전 올리기

step 01. 기존 버전으로 세팅하기

$ npm install
$ pod install
$ npx react-native run-ios

error : No bundle URL present

방법 1 (미해결)

$ rm -rf ios/build

or
Xcode > product > clean build folder

참고한 블로그

방법 2

기존 블로그앱은 node가 v12 이기때문에 버전을 맞추고 다시 세팅
하지만 여전히 오류가 해결되지 않았음

방법 3 (해결)

xcode 상에서 main.jsbundle 파일이 없다고 떠있는 것을 (빨간 글씨로 파일명이 표현되어있었음) 뒤 늦게 발견하여 해당 방법을 해결하기 위해 구글링을 했더니 아래와 같은 블로그를 찾을 수 있었다.

참고한 블로그

step 02. RN 버전 올리기

$ npx react-native upgrade 0.68.2
$ pod install

참고한 사이트

error : No visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:fallbackResource:'

AppDelegate

return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

to

return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];

참고한 블로그

step 03. 라이브러리 버전 올리기

package.json에서 필요한 라이브러리들을 한번에 다 올릴 수도 있지만, 그렇게 하면 동시 다발적으로 발생하는 오류를 판단하기에 쉽지않기때문에 (나는 아직 초보 개발자) 하나씩 올리기로 했다.

방식은 이러하다.
1. 유튜브 앱 package.json에서 라이브러리 버전을 확인한다.
2. 블로그 앱 package.json에서 라이브러리 버전을 확인한 후 터미널에서 해당 라이브러리의 버전을 올려준다.
3. pod install
4. build
5. test
6. 반복

error : @react-native-maps 버전 올리는 과정에서 발생

platform :ios, '13.0'
pod 'GoogleMaps', '7.0.0' 
pod 'Google-Maps-iOS-Utils'

참고한 사이트

"@react-navigation/elements": "^1.2.1",
to
"@react-navigation/core": "^6.4.0",

0개의 댓글