React-native-code-push: [Error] The uploaded package is identical to the contents of the specified deployment's current release.

Created on 16 Dec 2015  路  13Comments  路  Source: microsoft/react-native-code-push

(*'-') < react-native bundle --platform ios --entry-file index.ios.js --bundle-output main.jsbundle
bundle: Created ReactPackager
bundle: Closing client
bundle: start
bundle: finish
bundle: Writing bundle output to: main.jsbundle
bundle: Done writing bundle output
Assets destination folder is not set, skipping...

next:

(*'-') < code-push release say main.jsbundle 0.0.1                                               15-12-16 18:39
[Error]  The uploaded package is identical to the contents of the specified deployment's current release.

why?

thanks

Most helpful comment

I recently face the same issue and could not find helpful solution. I tried to understand the message and found out that I was trying to release the same code as new version.

I change few lines of code and retry.
....
It works then!!!

All 13 comments

Sometimes this happens: https://github.com/facebook/react-native/issues/4289
Try again with the --reset-cache option, or try clearing the packager cache rm -rf $TMPDIR/react-*
Let me know if it works!

As of today, better to try "--noDuplicateReleaseError"

@ohtangza @geof90
i tried "--noDuplicateReleaseError" but same error it is giving even though i changed code.
im implementing codepush with ionic 2(IOS).
my ionic info

Cordova CLI: 7.0.1
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.6
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.3

Hello, @bhagwans, and thanks for reaching us. I have created test application with the following configuration:

Cordova CLI: 7.0.1
cordova-plugin-code-push: v1.9.5-beta

then I have executed three sequential release-cordova commands:

  • code-push release-cordova testapp_cordova android, got successful release;
  • code-push release-cordova testapp_cordova android, got duplicate release error;
  • code-push release-cordova testapp_cordova android --noDuplicateReleaseError, got duplicate release warning.

In my case, code-push cli works as expected. If you need additional help regarding your question, please, feel free to open new issue in https://github.com/Microsoft/cordova-plugin-code-push repo using issue template specified there.

Hi @ruslan-bikkinin , thanks for commenting
Actually it is working in android as expected but not in ios.
Do we need any extra configuration in x-code?

@bhagwans I tried to reproduce this behavior on macOs Sierra 10.12.5, but it works as expected there too.

Hi @bhagwans, could you please provide us with the version of your code-push-cli? In bash please execute code-push -v command.

hello @sergey-akhalkov, thanks for commenting. my code-push version is 2.0.2-beta

I met this bug,how to do?

i met with same error in android as well and it got solved by changing version in xml.

version should not be less than the previously specified version.

same issues

I recently face the same issue and could not find helpful solution. I tried to understand the message and found out that I was trying to release the same code as new version.

I change few lines of code and retry.
....
It works then!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ninjz picture ninjz  路  4Comments

vira-khdr picture vira-khdr  路  3Comments

diegocouto picture diegocouto  路  4Comments

Adr1ann picture Adr1ann  路  3Comments

djw27 picture djw27  路  3Comments