Skip to content
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

[3.1.0] Unable to launch iOS app #4400

Closed
TomCorvus opened this issue Apr 24, 2023 · 12 comments
Closed

[3.1.0] Unable to launch iOS app #4400

TomCorvus opened this issue Apr 24, 2023 · 12 comments
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS

Comments

@TomCorvus
Copy link

Description

Since I updated REA to 3.1.0, the app crashes before launching.
This problem occurs only on iOS and debug mode only.

I tried to disable Hermes and Fabric, remove caches.
Simulator Screenshot - iPhone 14 Pro Max - 2023-04-24 at 16 22 41

Capture d’écran 2023-04-24 à 16 22 10

For now, I don't reproduce on a fresh install, the problem, but I'm on it.
It's just to know if someone else have the same error.

I'm on Xcode 14.3.

Downgrade to REA 3.0.2 and the problems disappears.

Steps to reproduce

Soon, I hope

Snack or a link to a repository

Soon, I hope

Reanimated version

3.1.0

React Native version

0.71.7

Platforms

iOS

JavaScript runtime

None

Workflow

Expo bare workflow

Architecture

None

Build type

Debug mode

Device

iOS simulator

Device model

iPhone 14 Pro Max (iOS 16.4)

Acknowledgements

Yes

@TomCorvus TomCorvus added the Needs review Issue is ready to be reviewed by a maintainer label Apr 24, 2023
@github-actions github-actions bot added Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS labels Apr 24, 2023
@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@davoam
Copy link

davoam commented Apr 24, 2023

In my case on iOS it immediately crashes, on Android it shows an error which I did not have in reanimated version 2.
Reanimated version is 3.1.0 and RN version is 0.71.6

@abedolinger
Copy link

Not sure if it's the same issue, but I got past this by updating all react-navigation dependencies - don't forget react-native-safe-area-context and react-native-screens.

@TomCorvus
Copy link
Author

All dependencies is up-to-date. I will try to remove animations one by one and simplify the code to have a clue.
@davoam Do you have your error with REA 3.0.2? And what is this error? Do you have a message?

@devoutDisciple
Copy link

the same error for me

@davoam
Copy link

davoam commented Apr 25, 2023

All dependencies is up-to-date. I will try to remove animations one by one and simplify the code to have a clue. @davoam Do you have your error with REA 3.0.2? And what is this error? Do you have a message?

I tried 3.0.2 it didn't help. I don't get any error message. As per Xcode error happens somewhere here
image

I even simplified my code to one view. If I don't import anything from react-native-reanimated, the app does not crash, If I import and use useSharedValue, it crashes.

I also tried updating every dependency using npm update as @256hz suggested, but nothing helped

@davoam
Copy link

davoam commented Apr 25, 2023

It seems that there are at least two related opened issues
#3102 and #3530

@vanGalilea
Copy link

Not sure if it's the same issue, but I got past this by updating all react-navigation dependencies - don't forget react-native-safe-area-context and react-native-screens.

Upgrading react-native-screens from 3.2.0 to 3.20.0 has solved my issue.

@BakkerTom
Copy link

I had the same issue. In my case, it was due to a mismatched babel plugin version. Restarting the metro bundler and clearing the cache solved the issue for me.

yarn start --reset-cache

@Essam-Harrous
Copy link

yarn start --reset-cache

this worked for me thanks

@TomCorvus
Copy link
Author

Thanks @BakkerTom, it seems to be working for me too.

@fukemy
Copy link

fukemy commented May 24, 2023

I had the same issue. In my case, it was due to a mismatched babel plugin version. Restarting the metro bundler and clearing the cache solved the issue for me.

yarn start --reset-cache

which babel plugin version matched? THanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests

8 participants