facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.04k stars 24.32k forks source link

Installation failed when update completed reload #45776

Closed wd494381642 closed 3 months ago

wd494381642 commented 3 months ago

Description

When the hot update file is downloaded, the installation fails when the hot update file is restarted

Steps to reproduce

1.react-native code-push downloads the update file

React Native Version

0.72

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.6.7
  CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Memory: 33.87 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 16.20.2
    path: ~/.nvm/versions/node/v16.20.2/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 8.19.4
    path: ~/.nvm/versions/node/v16.20.2/bin/npm
  Watchman:
    version: 2023.06.26.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.2.2
    path: /usr/local/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.14
    wanted: 0.72.14
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

2024-07-29 16:53:25.143114+0800 zjjAgt[67728:17646265] [javascript] 正在安装...,请等待!
2024-07-29 16:53:25.145397+0800 zjjAgt[67728:17646265] [javascript] 1
2024-07-29 16:53:25.145426+0800 zjjAgt[67728:17646265] [javascript] 新的版本已经安装完成,请重新登录!
2024-07-29 16:53:25.146628+0800 zjjAgt[67728:17646258] 
[CodePush] Restarting app.
2024-07-29 16:53:25.161102+0800 zjjAgt[67728:17645999] 
[CodePush] Loading JS bundle from file:///private/var/containers/Bundle/Application/FA8115E0-951C-420C-A66D-000095AA1592/zjjAgt.app/main.jsbundle
2024-07-29 16:53:25.162449+0800 zjjAgt[67728:17645999] [native] Invalidating <RCTCxxBridge: 0x15bd13500> (parent: <RCTBridge: 0x2814a8af0>, executor: (null))
2024-07-29 16:53:25.162725+0800 zjjAgt[67728:17645999] 
[CodePush] Loading JS bundle from file:///private/var/containers/Bundle/Application/FA8115E0-951C-420C-A66D-000095AA1592/zjjAgt.app/main.jsbundle
2024-07-29 16:53:25.163690+0800 zjjAgt[67728:17645999] [native] Invalidating <RCTCxxBridge: 0x15bf067c0> (parent: <RCTBridge: 0x2814baae0>, executor: (null))

Reproducer

1

Screenshots and Videos

No response

react-native-bot commented 3 months ago
:warning: Add or Reformat Version Info
:information_source: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2
react-native-bot commented 3 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
react-native-bot commented 3 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
react-native-bot commented 3 months ago
:warning: Add or Reformat Version Info
:information_source: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2
wd494381642 commented 3 months ago

⚠️ 添加或重新格式化版本信息 ℹ️ 我们无法在您的问题报告中找到或解析React Native的版本号。请使用模板,并报告您的版本,包括主要、次要和补丁编号-例如0.70.2

"react-native": "0.72.14",

cortinico commented 3 months ago

1.react-native code-push downloads the update file

We don't offer support for code-push here, you can open an issue here instead: https://github.com/microsoft/react-native-code-push/issues