일단 검색으로 한글 페이지로도 나오는 해결방법은
다음과같다
rm -rf ios/build
한후
react-native run-ios
다음은 내가 해결한 방법
해당 부분은 appdelegate.m이다.
디버그 부분을 위아래 전부다 해보자
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
// return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
도대체 뭐가 뭔지....
두번째 방법은 기존 index로 되어있는게 안되서 아래 릴리즈버전과 동일시로 변경해줬던거 같은데 이번엔 다르게 해줘야 또 들어간다
뭐가 변경된건지 감도 안잡힌다
반응형
'React Native' 카테고리의 다른 글
Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager (2) | 2021.06.29 |
---|---|
rn 시뮬레이터를 지정해서 실행하기 (0) | 2021.06.22 |
event2/event-config.h file not found (0) | 2021.03.23 |
Error - Unable to resolve module ~ from 'node_modules ~ HMRClient.js (0) | 2021.03.02 |
도대체 ... 이 점 세개 연산자는 무슨의미인가 (0) | 2019.09.03 |