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

[!] Invalid RNGestureHandler.podspec file: undefined method `install_dependencies' for Pod:Module #2652

Closed
dprajapati1179 opened this issue Oct 23, 2023 · 6 comments · Fixed by #2653
Labels
Missing repro Platform: iOS This issue is specific to iOS

Comments

@dprajapati1179
Copy link

Description

[!] Invalid RNGestureHandler.podspec file: undefined method `install_dependencies' for Pod:Module
Did you mean? install_flipper_dependencies.

Unable to proceed for ios build as pod install not working.

Steps to reproduce

  1. Upgrade cocoapods to the latest 1.13.0.
  2. Install pods by deleting node_modules & yaarn.lock or pacagejson.lock file
  3. You will find the invalid pod file error like bellow,

Snack or a link to a repository

https://snack.expo.io/

Gesture Handler version

2.13.3

React Native version

0.70.13

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

Paper (Old Architecture)

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@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?

@github-actions github-actions bot added the Platform: iOS This issue is specific to iOS label Oct 23, 2023
@dprajapati1179
Copy link
Author

TEMPORARY SOLUTION:

  1. Change your version to 2.9.0 (without the ^)
  2. Delete node_modules & package-lock.json
  3. yarn && cd ios/ && pod install

package.json
"react-native-gesture-handler": "2.9.0",

@j-piasecki
Copy link
Member

Could you install Gesture Handler 2.13.3, verify that it's still broken, and check if the following patch solves the problem?
react-native-gesture-handler+2.13.3.patch

j-piasecki added a commit that referenced this issue Oct 24, 2023
## Description

Inlines adding spec dependencies in case `install_modules_dependencies`
doesn't exist.

Fixes
#2652,
#2645
@geydson
Copy link

geydson commented Oct 24, 2023

Hello, even following the recommendation to update to version 2.13.3 the error persists, exclude the node_module folder, pods, podfile.lock and yarn.lock, even so the error persists.

I followed the recommendation @dprajapati1179 to use version "2.9.0"(without the ^):

package.json
"react-native-gesture-handler": "2.9.0",

And I was able to run the project normally, in version "2.13.3" the problem still persists, I was only able to run the "pod install" command with version "2.9.0" (without the ^).

[!] Invalid Podfile file:
[!] Invalid RNGestureHandler.podspec file: undefined method `install_dependencies' for Pod:Module.

from /Users/werike.santos/Desktop/Projetos/WebtradeMobile/node_modules/react-native-gesture-handler/RNGestureHandler.podspec:48

-------------------------------------------

else

 install_dependencies(s, new_arch_enabled)

end

-------------------------------------------

.

from /Users/werike.santos/Desktop/Projetos/WebtradeMobile/ios/Podfile:18

-------------------------------------------

use_expo_modules!

config = use_native_modules!

My machine configuration:
Macbook Intel i5

Gesture Handler version
2.13.3

React Native version
0.70.8

expo sdk
47.0.14

Platforms
iOS

Workflow
None

@j-piasecki
Copy link
Member

Try using version 2.13.4

@geydson
Copy link

geydson commented Oct 24, 2023

Try using version 2.13.4

@j-piasecki Thank you very much, it worked version 2.13.4 worked correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro Platform: iOS This issue is specific to iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants