-
-
Notifications
You must be signed in to change notification settings - Fork 988
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
Pod install failing due to undefined 'exists' method at RNGestureHandler.podspec file #2367
Comments
@ArunGovil have you got any solution for this issue? I am also facing the same issue after upgrading to latest MAC OS |
Same problem here, seems like a unkown issue so far. Anyone got a temp fix? (also running newest ventura) |
same problem here :( |
Same problem here |
We have same issue here |
Same here |
Before #2368 gets released, this patch should do the trick: diff --git a/RNGestureHandler.podspec b/RNGestureHandler.podspec
index fed3e8aea..fc3226de1 100644
--- a/RNGestureHandler.podspec
+++ b/RNGestureHandler.podspec
@@ -2,7 +2,7 @@ require "json"
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
-isUserApp = File.exists?(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json"))
+isUserApp = File.exist?(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json"))
if isUserApp
libInstances = %x[find ../../ -name "package.json" | grep "/react-native-gesture-handler/package.json" | grep -v "/.yarn/"]
libInstancesArray = libInstances.split("\n") |
As a workaround, if you have
HOMEBREW_EDITOR=code brew edit cocoapods
19 | ...
20 | uses_from_macos "libffi", since: :catalina
21 | uses_from_macos "[email protected]", since: :catalina
22 |
23 | on_arm do
24 | depends_on "[email protected]"
25 | end
26 | ...
brew reinstall --build-from-source cocoapods In my case the problem was not only in this package, and this patch "solved" the problem for all packages. |
@j-piasecki Thank you for responding, it did worked for gesture-handler. However the issue was still coming up in other packages. Followed the answer by @witcherlin which solved the issue completely. Thanks everyone, closing the issue. |
For me this sadly didint work.
When executing the: HOMEBREW_EDITOR=code brew edit cocoapods
Never mind! Fixed, i used brew edit cocaopods ^_^ |
@witcherlin |
@KiwiKilian, yes, you are right, but I chose the version recommended in the react-native documentation, currently 2.7.6 |
anyone know why the latest ruby is even used? i thought the pods installer was using system ruby? |
I solved it by installing a version manager for Ruby ( |
Uhm, thanks for the workaround and fix, but why does a deprecated method break the whole thing? Seems to me the point of a "deprecation" is exactly to warn devs that this method might be removed in a later version, so they can adapt before the pipelines of all the non-Ruby people are broken 🤷🏻♂️ |
ruby likes to release breaking changes in minor versions, not sure why they don't respect semver. |
Remove Then:
And after that your pod will work fine. It woks fine for me :) |
Fixed in latest release of
|
This is a viable approach |
FYI: #2368 was released in 2.9.0 |
Description
Pod install keeps failing due to an undefined 'exists' method at RNGestureHandler.podspec file.
However the app works fine on Android, facing this error whenever I'm trying to run on ios environment.
I have checked with two of my other apps, where also I'm getting the same issue.
Here's the error log when running pod install:
Steps to reproduce
Snack or a link to a repository
https://github.com/ArunGovil/QuickMark
Gesture Handler version
2.8.0
React Native version
0.70.6
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 14
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: