Open JackClown opened 4 months ago
记录一下解决过程, 给有需要的同学, react native版本0.73
以下code-push-cli特指@shm-open/code-push-cli
--minify false
Podfile
中hermes_enabled
来判断是否开启hermes,但当前版本的react native已经不是根据这个参数来了,需要手动加上--sourcemap-output
xcode.env
内导出环境变量SOURCEMAP_FILE
export SOURCEMAP_FILE="$DERIVED_FILE_DIR/main.jsbundle.packager.map"
但是xcode编译完后,又会删除sourcemap,而code-push-cli会保留sourcemap并且会上传热更新服务器,这又会触发第一次热更新,调整就是不让code-push-cli上传sourcemap,而且确实没有必要
code-push-cli
默认会上传CodePush目录下的所有文件, 因为如果我们要生成sourcemap,就不要把sourcemap放在CodePush下面
Thanks so much for filing an issue or feature request! We will address it as soon as we can. Please follow these guidelines:
code-push-cli
orcode-push
that you are using.react-native: 0.73
请问有遇到过这种情况吗