React Native iOS打包配置和打包

来源:互联网 发布:去公司做淘宝推广员 编辑:程序博客网 时间:2024/06/14 13:25

配置:
package.json中的scripts加入

“start”: “node node_modules/react-native/local-cli/cli.js start”,
“bundle-ios”: “node node_modules/react-native/local-cli/cli.js bundle –entry-file index.ios.js –platform ios –dev false –bundle-output ./ios/bundle/index.ios.jsbundle –assets-dest ./ios/bundle”

打包:
1.在Xcode中product-Scheme-Edit Scheme
将Run Profile Analyze Archive 更改为Release
2.在根目录下的iOS文件夹中建立bundle文件夹
3. cd 到根目录下 运行命令行:
4. 在xcode中添加bundle文件夹,并选择文件夹格式为Creat folder references
5. 在Xcode中product中进行archive

原创粉丝点击