main.jsbundle, Foundation and Security missing in the project, causing error

前端 未结 4 446
我在风中等你
我在风中等你 2021-02-01 22:43

I\'ve noticed that file main.jsbundle file is missing from the project and am not sure of how to fix it, should I delete the file / is there a step I can perform to

4条回答
  •  离开以前
    2021-02-01 23:13

    The problem can be resolved as follows

    • By using the react native command line
    • $ react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output ios/main.jsbundle using this in the root of the react native project
    • When the main.jsbundle file is generated add it back to the Add Files to Project option
    • Just verify that the file is included in the build phase and re-build

    Update For the asset destination to be set they have to be in same folder.

    Try this,it would create the asset folder

    $ react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output ios/main.jsbundle --assets-dest ./ios
    

提交回复
热议问题