cha*_*gey 18 xcode ios react-native
“反应”:“16.13.1”,“反应原生”:“0.63.0”,
遇到下面的main.jsbundle不存在。在升级到 react-native 0.63 后尝试存档时,这一定是一个有问题的错误。想知道是否有人遇到同样的问题
Isa*_*ker 17
这在一个涉及babel-plugin-module-resolver
以下项目的项目中对我有用:
ios/*.xcworkspace
在 Xcode 中打开您的。cd $PROJECT_DIR/..
to go up a directory.The whole script should look like this:
cd $PROJECT_DIR/..
export NODE_BINARY=node
./node_modules/react-native/scripts/react-native-xcode.sh
Run Code Online (Sandbox Code Playgroud)
Note that this might break if the source of this is a bug in 0.63.0, so you may need to undo this on a future release.
Props to @typester for bringing this up on facebook/react-native #29351.
找到了解决办法
main.jsbundle
package.json
,添加"scripts": {
"bundle:ios": "react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"postinstall": "yarn run bundle:ios"
...
},
Run Code Online (Sandbox Code Playgroud)
所以main.jsbundle
会产生
归档时间: |
|
查看次数: |
11130 次 |
最近记录: |