LoginSignup
3
2

More than 3 years have passed since last update.

ReactNativeの「No bundle URL present」の解消法

Last updated at Posted at 2020-05-23

概要

ReactNativeで機能追加をすることになりとりあえずreact-native run-iosで起動してみようとしたらエラーが出ました。
どうやら結構出るエラーで下記のサイト等を参考にやってみるがダメだった。。。
なんとか解決できたので備忘録として残しておきます。
https://qiita.com/wktq/items/9139f4c0bdf52bd71c93
http://sottar.hatenablog.com/entry/2018/01/03/171524

エラー内容

解決策

動画の通りに進めていくことで解決できました!
https://www.youtube.com/watch?v=eCs2GsWNkoo

手順

  1. Xcodeを起動
  2. main.jsbundleの削除
  3. [File]→[New]→[File]→[Empty]で「main.jsbundle」を新規作成
  4. ターミナルを起動
  5. プロジェクトフォルダまで移動
  6. react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest iosを実行
  7. 先ほど新規作成した「main.jsbundle」に書き出されるのを確認
  8. react-native run-iosを実行
3
2
0

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
3
2