Giter VIP home page Giter VIP logo

Comments (17)

alexcroox avatar alexcroox commented on July 17, 2024 1

The workaround for me is to not sign the release and remove the IOS_PUBLIC_KEY entry

from capacitor-codepush.

LouiMinister avatar LouiMinister commented on July 17, 2024 1

@veneliniliev It works when I use -c ./ios/App/App/public on ios codepush.
Thanks for your hint.

from capacitor-codepush.

bazuka5801 avatar bazuka5801 commented on July 17, 2024 1

@tolutronics AppCenter React Native CodePush is good replacement, but look at these lines of code:
https://github.com/microsoft/appcenter-cli/blob/f4f9b8f5d2dd0d3988977ed6efa412e3320ff141/src/commands/codepush/lib/codepush-release-command-base.ts#L114-L123

appcenter-cli will zip www to CodePush folder ignoring -c ios/app/app/public argument

I modified this cli (ignoring the lines above), you can install it with yarn global add @bazumax/appcenter-cli (after removing the original appcenter-cli)

This works as expected with signing of build

from capacitor-codepush.

tolutronics avatar tolutronics commented on July 17, 2024

Is anyone else having this issue?

from capacitor-codepush.

alexcroox avatar alexcroox commented on July 17, 2024

I have the same issue, occurs after:

[CodePush] Installing update
[CodePush] Applying full update

I release with the following:

appcenter codepush release --target-binary-version '^1' --app FarmTo/farmto-ios-sandbox --update-contents-path ./ios/App/App/public/ --private-key-path '/Users/alex/Documents/Keys/farmto-app/codepush-keys/private.pem' --deployment-name Production

And my capacitor config looks correct:

image

image

from capacitor-codepush.

alexcroox avatar alexcroox commented on July 17, 2024

I've also noticed the docs and the error feedback reference --privateKeyPath but if you use that with codepush cli you get the error;

"Unknown argument --privateKeyPath" so consulting the docs https://docs.microsoft.com/en-gb/appcenter/distribution/codepush/cli#releasing-updates-general I used --private-key-path and it stopped complaining

from capacitor-codepush.

alexcroox avatar alexcroox commented on July 17, 2024

Others in the react-native repo are having issues with this recently, wonder if related microsoft/react-native-code-push#2141

from capacitor-codepush.

tolutronics avatar tolutronics commented on July 17, 2024

@alexcroox Do you get the signing working for android?

from capacitor-codepush.

tolutronics avatar tolutronics commented on July 17, 2024

I've also noticed the docs and the error feedback reference --privateKeyPath but if you use that with codepush cli you get the error;

"Unknown argument --privateKeyPath" so consulting the docs https://docs.microsoft.com/en-gb/appcenter/distribution/codepush/cli#releasing-updates-general I used --private-key-path and it stopped complaining

yes, that flag does not work but instead "-k" works

from capacitor-codepush.

tolutronics avatar tolutronics commented on July 17, 2024

This issue is a serious one, that needs urgent attention

from capacitor-codepush.

veneliniliev avatar veneliniliev commented on July 17, 2024

i have the same problem :(

from capacitor-codepush.

Dwimcore avatar Dwimcore commented on July 17, 2024

Same here

from capacitor-codepush.

LouiMinister avatar LouiMinister commented on July 17, 2024

Same here too

from capacitor-codepush.

veneliniliev avatar veneliniliev commented on July 17, 2024

The workaround for me is to not sign the release and remove the IOS_PUBLIC_KEY entry

@LouiMinister use this for now. its working for me.

from capacitor-codepush.

LouiMinister avatar LouiMinister commented on July 17, 2024

@veneliniliev After applied your advice, JWT ERROR was solved but other error has occurred on xcode.

{"data":"OK","status":200,"url":"https://codepush.appcenter.ms/v0.1/public/codepush/report_status/download","headers":{"Content-Length":"2","access-control-allow-methods":"POST","request-context":"appId=cid-v1:4116a8f2-fe3b-4636-b7b9-91c8df94c88d","
ERROR MESSAGE: {"message":"The file “hotcodepush.json” couldn’t be opened because there is no such file.","errorMessage":"The file “hotcodepush.json” couldn’t be opened because there is no such file."}
⚡️ [error] - {"message":"The file “hotcodepush.json” couldn’t be opened because there is no such file.","errorMessage":"The file “hotcodepush.json” couldn’t be opened because there is no such file."}
⚡️ To Native -> CodePush getPublicKey 127958629
⚡️ [log] - [CodePush] Applying full update
ERROR MESSAGE: {"message":"The file “.codepushrelease” couldn’t be opened because there is no such file.","errorMessage":"The file “.codepushrelease” couldn’t be opened because there is no such file."}
⚡️ [error] - {"message":"The file “.codepushrelease” couldn’t be opened because there is no such file.","errorMessage":"The file “.codepushrelease” couldn’t be opened because there is no such file."}
⚡️ To Native -> CodePush getAppVersion 127958632
⚡️ To Native -> CodePush getBinaryHash 127958633
⚡️ To Native -> CodePush isPendingUpdate 127958634
⚡️ To Native -> CodePush getNativeBuildTime 127958636
⚡️ To Native -> CodePush getAppVersion 127958637
⚡️ TO JS {"uri":"file:///var/mobile/Containers/Data/Application/DF8D00C6-0C29-4649-B70D-76F19A14546C/Documents/codepush/currentPackage.json"}
⚡️ To Native -> CodePush preInstall 127958639
⚡️ [error] - [CodePush] Preinstall failure. Could not find start page in package.. StackTrace: CapacitorException@capacitor://localhost/vendor.js:105239:14
⚡️ [error] - [CodePush] An error has occured while installing the package. Could not find start page in package.. StackTrace: preInstallFailure@capacitor://localhost/vendor.js:172081:46
⚡️ [error] - [CodePush] An error occurred during sync. An error has occured while installing the package. Could not find start page in package.. StackTrace: preInstallFailure@capacitor://localhost/vendor.js:172081:46

Do you know about this?
I think it is related with #21
Thx for your comment.

from capacitor-codepush.

veneliniliev avatar veneliniliev commented on July 17, 2024

@LouiMinister try with --update-contents-path ./www/
my project is angular/ionic based and build path is www/ in root folder

from capacitor-codepush.

samicston avatar samicston commented on July 17, 2024

@tolutronics your solution did not work for me or am i missing something?

from capacitor-codepush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.