microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.95k stars 1.46k forks source link

An update is available but it is not targeting the binary version of your app #2700

Closed FBRAA closed 3 months ago

FBRAA commented 4 months ago

Steps to Reproduce

  1. Update app
  2. Push update to Codepush
  3. Try to install it on a device/simulator

Expected Behavior

What you expected to happen?

Update installed

Actual Behavior

LOG [CodePush] Reporting binary update (1.0.15) LOG [CodePush] Report status failed: {"appVersion":"1.0.15"} LOG [CodePush] queryPackage: 1.0.15 LOG [CodePush] update: 5.4.1 LOG [CodePush] {"queryPackage": {"appVersion": "1.0.15"}, "update": {"appVersion": "5.4.1", "updateAppVersion": true}} LOG [CodePush] true LOG [CodePush] An update is available but it is not targeting the binary version of your app.

config.packageHash === update.packageHash // true

it is said 3) The server said there is an update, but the update's hash is the same as

Environment

(The more info the faster we will be able to address it!)

https://github.com/microsoft/react-native-code-push/issues/1485 - same issue was closed unresolved

P.S. If I do codepush release again - the issue persists

DmitriyKirakosyan commented 3 months ago

@FBRAA, please ensure the version in project.pbxproj matches your update version. For instance, if you upload version 5.4.1, update your project.pbxproj to reflect the same version.

DmitriyKirakosyan commented 3 months ago

Closing due to inactivity.