47
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React Native「No bundle URL present」エラー対策集

Last updated at Posted at 2018-05-18

ビルドキャッシュの削除

rm -rf ios/build

パッケージの再インストール

rm -rf node_modules/ && yarn

プロセスのkill

sudo lsof -i:8081
kill -9 プロセス番号

packagerのキャッシュ削除

./node_modules/react-native/scripts/packager.sh --reset-cache

デバッグビルドなのにリリース用の書き方をしている

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
//  jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; //こっちはリリース用
47
28
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
47
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?