RN Error: 无法获取此包的编译时间戳。请更新react-native-update到最新版本后重新打包上传。

老项目:RN 0.44.0 react-native-update 4.0.6

注意:如果网不行那得开4G或者5G


之前热更新的时候遇到这样的问题 请问如何进行操作
: edz$ pushy uploadIpa /Users/edz/Documents/HOT1.0.0.1\ 2020-03-11\ 11-02-02/good.ipa
Error: 无法获取此包的编译时间戳。请更新react-native-update到最新版本后重新打包上传。
at getIpaInfo (/usr/local/lib/node_modules/react-native-update-cli/lib/utils/index.js:101:11)
 

这个意思是提示咱们 react-native-update 要更新到最新版

为了保守升级我们先不改动RN的版本,在Pakage.json文件下配置"react-native-update": "^5.5.6",删除node_modules,接着npm install.

在:RN 0.44.0生成的根目录下只有一个index.ios.js 文件 在APPDelegate.m中

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

那么本次升级更目录下默认是index.js 可是之前没有怎么办😭,直接复制index.ios.js 把文件名字改成index.js

这样你用Xcode就可以跑起来了.万里长征才进行到第一步(升级后跑起来)

这里就开始配置热更新了

官方配置如下:

https://reactnativecn.github.io/react-native-pushy/#/guide

官方解答:

https://github.com/reactnativecn/react-native-pushy/issues/322

最后运行终端结果:

edz$ pushy uploadIpa /Users/edz/Documents/HOT\ 2020-03-11\ 19-11-58/good.ipa

  Uploading [========================================================] 100% 0.0

Ipa uploaded: 38979

192: edz$ pushy bundle --platform ios

Bundling with React Native version:  0.44.3

Running bundle command: node node_modules/react-native/local-cli/cli.js bundle --assets-dest build/intermedia/ios --bundle-output build/intermedia/ios/index.bundlejs --dev false --entry-file index.js --platform ios --reset-cache

Scanning 754 folders for symlinks in /Users/edz/Documents/BTHot/node_modules (13ms)

Scanning 754 folders for symlinks in /Users/edz/Documents/BTHot/node_modules (31ms)

Loading dependency graph, done.

 

warning: the transform cache was reset.

 

bundle: start

bundle: finish

bundle: Writing bundle output to: build/intermedia/ios/index.bundlejs

bundle: Done writing bundle output

bundle: Copying 41 asset files

bundle: Done copying assets

Packing

Bundled saved to: build/output/ios.1583925510698.ppk

Would you like to publish it?(Y/N) Y

  Uploading [========================================================] 100% 0.0

Enter version name: 11

Enter description: 11

Enter meta info: 11

Version published: 85152

Would you like to bind packages to this version?(Y/N) Y

 

  ┌────────────┬───────────────────────────────────┐

  │ Package Id │              Version              │

  ├────────────┼───────────────────────────────────┤

  │   38979    │     1.0.0.1(normal) (newest)      │

  ├────────────┼───────────────────────────────────┤

  │   38692    │ 1.2.1(normal) - 84586 Fj1KWriA 1  │

  ├────────────┼───────────────────────────────────┤

  │   38622    │      1.2.0(normal) (newest)       │

  ├────────────┼───────────────────────────────────┤

  │   38382    │ 1.1.0(normal) - 85104 ibQ_eOb0 11 │

  └────────────┴───────────────────────────────────┘

 

Total 4 package(s).

Enter Package Id: 38979

Ok.

192:BTHot edz$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值