microsoft / react-native-code-push

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

[IOS][Android] App crashes each time with new codepush update (react native 0.69.2) #2307

Closed ahmadzraiq closed 2 years ago

ahmadzraiq commented 2 years ago

App crashes each time with new release after upgraded react native from 0.68.2 to 0.69.2 in release mode (testflight, firebase distribution)

Error: Fatal Exception: com.facebook.jni.CppException: Compiling JS failed: Wrong bytecode version. Expected 85 but got 84 Buffer size 9790868 starts with: c61fbc03c103191f5400000090bf9853 and has protection mode(s): r--p at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loop(Looper.java:201) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228) at java.lang.Thread.run(Thread.java:764)

Steps to Reproduce

Do a codepush on release build with react native 0.69.2

Expected Behavior

Update the app without crash

Actual Behavior

App crashes after downloading the release

Environment

geekyoperand commented 2 years ago

Hi @ahmadzraiq, Does code push supports react native version 0.68.1. Because as per the documentation only these versions are mentioned

image

ahmadzraiq commented 2 years ago

@geekyoperand Hello, code push is working with me react native 0.68.2

edritech93 commented 2 years ago

same issue for me, I use reacct-native 0.69.5

ahmadzraiq commented 2 years ago

@edritech93 you need to upgrade appcenter-cli to the latest version

chellongCoder commented 1 year ago

@edritech93 you need to upgrade appcenter-cli to the latest version

I have still got this error :( it's crashed when update 100% pakage