main-jsbundledoesnotexist-Thismustbeabugwith
main.jsbundle does not exist. This must be a bug with
main.jsbundle does not exist. This must be a bug with
!!!最新处理方案:
由于M1 xcode 架构变化导致,需要软链一下 watchman
cd /opt/homebrew/bin sudo ln -s /opt/homebrew/bin/watchman /usr/local/bin/watchman
1)在 package.json script 中 添加
"buildIos": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output release_ios/main.jsbundle --assets-dest release_ios/"
�
2)然后执行 npm run buildIos
会在release_ios目录生成一个 main.jsbundle 文件
3)然后如下图 引入 该文件 main.jsbundle
或:
本文由作者按照 CC BY 4.0 进行授权


