microsoft / cordova-plugin-code-push

Cordova plugin for CodePush
http://appcenter.ms
Other
644 stars 330 forks source link

IOS The update contents failed the data integrity check #587

Closed sefasaid closed 4 years ago

sefasaid commented 4 years ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Description

I have success on android. But in ios platform I'm getting error: The update contents failed the data integrity check

First i run app in emulator and codepush runs success and update app success. After second codepush release it gives this error.

Reproduction

[FILL THIS OUT: If possible try to reproduce your bug on our basic sample: https://github.com/Microsoft/cordova-plugin-code-push/tree/master/samples/basic. If you can't reproduce the bug on it, provide us as much info as possible about your project.]

Additional Information

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

I checked downloaded sum shasum -a 256 /Users/sefasaid/Library/Developer/CoreSimulator/Devices/4B47DAE7-CECC-4156-91B2-D1C25F2B8ABF/data/Containers/Data/Application/F3DC4626-8F03-4C64-8841-D981F3A76676/Library/NoCloud/codepush/download/update.zip 5497f82541959af34cacbcf5c602e5a1568d37f966ab0d16b8fdab5428a1b23f /Users/sefasaid/Library/Developer/CoreSimulator/Devices/4B47DAE7-CECC-4156-91B2-D1C25F2B8ABF/data/Containers/Data/Application/F3DC4626-8F03-4C64-8841-D981F3A76676/Library/NoCloud/codepush/download/update.zip

it was wrong with {"appVersion":"1.3.140","deploymentKey":"xxx","description":"hata testi 2","downloadUrl":"https://codepushupdates.azureedge.net/storagev2/sEVQP0ggLYwUI_ylV2UAOPyJGMfPe6d4e62a-46b8-44e3-82a2-494b3daf842b","isMandatory":false,"label":"v14","packageHash":"014b06d95b89c087a0f09390447d9fa5feb11d2ac15506c2ca109a1ce6a2ed9b","packageSize":830132,"failedInstall":false

sefasaid commented 4 years ago

when i run again with xcode codepush does full update and it is success but when i deploy new udpate from codepush it fails again

sefasaid commented 4 years ago

this pull request solves the problem

sefasaid commented 4 years ago

when the deploymentName is change it won't work again When update is Applying diff update it fails When update is full update it works

So how can i make full update always?

mastersmind commented 4 years ago

Did you found any solution?

alexandergoncharov-zz commented 4 years ago

Hi @sefasaid , Thanks for reporting and sorry for the delay.

I merged this PR https://github.com/microsoft/cordova-plugin-code-push/pull/584 that fix your issue. Could you please test your app with the latest code-push plugin version?

@mastersmind , that PR should fix this issue.

So, as PR was merged I'm going to close this issue for now. Please feel free to reopen it if you have any questions or if you faced this issue again.

Thanks, Alexander