Closed FrozenPyrozen closed 1 year ago
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?
I am also getting this error when I tried to update from 2.10.0
to 2.12.0
I had to update due to #3743, now Android app builds without any errors but pod install
fails
I am also facing same issue today, yesterday it was working fine.
Same problem here. What I tried:
pod deintegrate
pod repo update
pod install
I also deleted Podfile.lock with no luck.
For those using RBENV for managing ruby versions, whenever you install a different ruby version and then you'll be faced with the following error(not 100% same lol):
gem update --system
bundle update --bundler
Both these commands will be helpful in fixing the issue.
It took me hours but in my case, the issue was having space in the project name.
i.e ABC Project
Changing that to ABCProject worked for me. I know it's a bit weird, but this worked for me twice.
It took me hours but in my case, the issue was having space in the project name. i.e ABC Project Changing that to ABCProject worked for me. I know it's a bit weird, but this worked for me twice.
Looks like the problem lies here (https://github.com/software-mansion/react-native-reanimated/blob/05c93b02ede93950904812239fbe95366e372ab6/scripts/reanimated_utils.rb#L63), its possible that we can have multiple instances of react-native-reanimated in the same node_modules directory. Suggested fix is here: https://github.com/software-mansion/react-native-reanimated/pull/3774
Anyone please help me after upgrading expo sdk 46 to 47 with react-native-reanimated 2.12.0
my ios build failed.
Also having this
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
Hi guys, anyone still face this issue, please advise , almost one day without lack to fix it up
Invalid Podfile
file:
Invalid RNReanimated.podspec
file: different prefix: "" while trying to do pod install
reanimated_package_json = JSON.parse(File.read(File.join(dir, "package.json")))
config = find_config()
assert_no_multiple_instances(config)
Currently using react-native-reanimated "^2.13.0" (latest)
Did anybody get this issue?
Invalid
Podfile
file: InvalidRNReanimated.podspec
file: different prefix: "" while trying to do pod installreanimated_package_json = JSON.parse(File.read(File.join(dir, "package.json")))
config = find_config()
assert_no_multiple_instances(config)
Currently using react-native-reanimated "^2.13.0" (latest)
Did anybody get this issue?
i'm also facing same issue.
The issue you are facing is occurs when you have multiple instances of RNAnimated (https://docs.swmansion.com/react-native-reanimated/docs/next/fundamentals/troubleshooting/#multiple-versions-of-reanimated-were-detected) and it has been described here (https://github.com/software-mansion/react-native-reanimated/pull/3774). TLDR; there's a problem with the assert_no_multiple_instances
function in this file (https://github.com/software-mansion/react-native-reanimated/blob/05c93b02ede93950904812239fbe95366e372ab6/scripts/reanimated_utils.rb). The fix is available in this release (https://github.com/software-mansion/react-native-reanimated/releases/tag/3.0.0-rc.7) but its still a pre-release candidate so I'm not sure how stable it is to use in production code. You can always just apply the changes in this PR (https://github.com/software-mansion/react-native-reanimated/pull/3774) to your node_modules folder and persist them using patch-package or something similar.
@jfkm69 This worked for me, lots of thanks. But now I have to wait for a stable version of the lib.
I did the patch-package fix and latest rc version was giving me other issues
Hi all 👋 I have managed to fix this issue on my machine by doing the following:
brew uninstall cocoapods
gem install cocoapods -v 1.10.1
(I'm using rbenv
to manage my Ruby versions by the way)ios
directorypod install
Hope someone else finds this useful! 🤞
@jfkm69 thank you i solved it thanks to you!
Should be fixed in 2.14.0 and in 3.0.0-rc.10
Should be fixed in 2.14.0 and in 3.0.0-rc.10
That's works for me , 2.12.0 => 2.14.0.
Check if you have spaces in your path.
Example: /Users/me/Documents/Github/Sample Project/reactnativeproject
I am also getting this error when I tried to update from
2.10.0
to2.12.0
I had to update due to #3743, now Android app builds without any errors butpod install
fails
Thank so much, you helped me!
Description
When update reanimated from
2.8.0
to2.12.0
got error when installing pods, also update to reanimated2.9.0
gives the same error:Steps to reproduce
Snack or a link to a repository
no link
Reanimated version
2.8.0
React Native version
0.69.4
Platforms
iOS
JavaScript runtime
JSC
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes