【发布时间】:2016-03-12 15:25:39
【问题描述】:
RE(没有足够的经验值在那里回复): “在我的生产构建的捆绑命令中,我告诉它生成源映射” How to add sourcemap in React Native for Production?
在 Xcode 7.3 beta 3 中,我转到 [我的项目] > 构建阶段 > 捆绑 React Native 代码和图像
在: 导出 NODE_BINARY=节点 ../node_modules/react-native/packager/react-native-xcode.sh
我补充说: cd /Users/andresn/dev/[我的项目] react-native bundle --platform ios --entry-file index.ios.js --dev false --bundle-output ./ios/main.jsbundle --assets-dest ./ios --sourcemap-output ./sourcemap .js
他的意思是这样的,还是有更合适的方法?
【问题讨论】:
-
注意:在第一个 cd 之后需要一个分号或换行符: cd /Users/andresn/dev/[My Project]; react-native bundle --platform ios --entry-file index.ios.js --dev false --bundle-output ./ios/main.jsbundle --assets-dest ./ios --sourcemap-output ./sourcemap .js
-
嘿@Andres Narvaez 你设法让它为你工作了吗?
-
@brien.crean 是的,在我上次发表评论后至今没有任何问题。
标签: ios xcode react-native