Closed dawid-bytys closed 1 day ago
Having the same issue
Same versions as @dawid-bytys even Xcode 15.2 (15C500b). Just in Release mode
This is the file which throws the error:
.../node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp
Redirects to line 303 when clicks on the error
Please help 😞
fixed by adding new import on top (or any place in the header section that you are sure it will load) of this file
node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp
:
#include <sstream>
I am curious why it was fine in version in 0.75 but broken in 0.76.1....(both XCode 15.1)
Can someone add it to a commit and make a release for the hotfix? It's a very simple fix...
Can someone add it to a commit and make a release for the hotfix? It's a very simple fix...
You can use patch-package
for now.
can patch-package
works in an CI/CD using AppCenter? @dawid-bytys
Can someone add it to a commit and make a release for the hotfix? It's a very simple fix...
Short Answer: I am not an expert of C++ and this library. Not sure will that cause duplicate header import in other React Native/XCode combination then break their building process...better use patch-package
or yarn patch
for now
can
patch-package
works in an CI/CD using AppCenter? @dawid-bytys
Yes, just add "postinstall": "patch-package"
script to package.json
.
Yes, i have already did it and works in local. I wanted to know about in AppCenter. It's fine guys, thanks for the help ❤️
@tjzel, any updates on this?
@gabrieldonadel Thanks for pinging me, I didn't know there was an issue open about this. The fix for this has been released in react-native-reanimated@3.16.2
:
Description
Hello,
I found a bug when building for iOS in Release mode (in Debug it works fine) on RN version 0.76.1 and reanimated version 3.16.1. The bug is related to the new architecture (and possibly XCode version 15.2?).
Steps to reproduce
npx @react-native-community/cli@latest init App
yarn add react-native-reanimated
cd ios && pod install
babel.config.js
Snack or a link to a repository
https://github.com/dawid-bytys/reanimated-bug-reproduction
Reanimated version
3.16.1
React Native version
0.76.1
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Other (please specify)
Device
iOS simulator
Device model
iPhone 15 Pro (iOS 17.2)
Acknowledgements
Yes