-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The file “currentPackage.json” couldn’t be opened because there is no such file #21
Comments
I have the exact same debug output. The errors look scary but I think they are just debug callbacks as the plugin works out what directories need to be created on the first run to download and extract updates. As you can see the mkdir calls running after them along with a final "Package download success". However my app crashes in the same place as yours, just after "Applying full update" with the same error:
@UserSG Did you find a resolution? @leo6104 is this something you've come across in iOS testing? |
Could you please let us know, if we could help in any way? |
@alexcroox Unfortunately, no I couldn't able to fix it and the issue still exists in both iOS and Android. @o-alexandrov No progress was made. |
We have been seeing some issues where newly deployed source files cannot be loaded by the WebView after updating after a resume from suspend event. Not sure what's going on here but could be related. |
It's possible that the app restart is not occurring after the update, which would be necessary to restart the WebView, but... I'm not sure. |
@lincolnthree @UserSG @o-alexandrov @alexcroox I got the same same set of messages--both couldn't find package.json and alexcroox's cannot insert nil. I ran it in Xcode and traced it up to where the plugin is trying to read the public key. If you're used to an older version of AppCenter--like I am--you might not be expecting to have to provide a private key. This article walks you through it if you're new to doing it: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli Note that when you put the values into package.json, you'll have to join all the lines together using \n since json doesn't allow multiline strings. You'll need to give the cli a path to the private key a la: |
|
Running into a similar issue causing an iOS crash with error
The crash is avoided if strings are passed for Exception occurs here: https://github.com/mapiacompany/capacitor-codepush/blob/main/ios/Plugin/CodePushReportingManager.m#L88 and is triggered on the JS side here: https://github.com/mapiacompany/capacitor-codepush/blob/main/src/codePush.ts#L150 Only occurs on first/fresh installs |
Description
I created a capacitor project, installed the plugins, and configured the deployment key. From the javascript layer, I invoked the sync() function. I'm getting the following error and the application gets crashed at the end.
Additional Information
"@capacitor-community/http": "^1.0.0-alpha.2",
"@capacitor/cli": "^3.0.0-rc.0",
"@capacitor/core": "^3.0.0-rc.0",
"@capacitor/device": "^0.5.6",
"@capacitor/dialog": "^0.4.6",
"@capacitor/filesystem": "^0.5.2",
"@capacitor/ios": "^3.0.0-rc.0",
"@capacitor/splash-screen": "^0.3.6",
"capacitor-codepush": "github:mapiacompany/capacitor-codepush"
Repository Info
https://github.com/UserSG/CodePushWithCapacitor.git
The text was updated successfully, but these errors were encountered: