일단 검색으로 한글 페이지로도 나오는 해결방법은

다음과같다

 

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로 되어있는게 안되서 아래 릴리즈버전과 동일시로 변경해줬던거 같은데 이번엔 다르게 해줘야 또 들어간다

 

뭐가 변경된건지 감도 안잡힌다

+ Recent posts