react-native: No such module 'ReactAppDependencyProvider'
Description
I’m encountering an issue when running pod install in my React Native project. This happens not only in my project but also in any other React Native project I’ve found online.
After running pod install, which generates the Xcode project for building the corresponding iOS app, the build fails with the following error in AppDelegate:
java Copia codice no such module ‘ReactAppDependencyProvider’ It seems like this missing module is supposed to contain the entire project’s dependencies, but for some reason, it is not being recognized. I suspect that something is preventing CocoaPods from correctly linking the necessary modules.
I’ve tried standard troubleshooting steps such as:
Running pod install again after cleaning the ios folder. Deleting Podfile.lock and Pods and reinstalling dependencies. Ensuring that the React and React-Core modules are correctly included in the Podfile. However, the issue persists. Does anyone know what could be causing this or how to properly link the missing module?
Steps to reproduce
- Create a react-native project
- Run pod install
- Run npx react-native run-ios
React Native Version
0.76.5
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
Error unknown command info
Stacktrace or Logs
no such module ReactAppDependencyProvider
Reproducer
https://GitHub.com/react-native-community/template.git
Screenshots and Videos
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 17 (3 by maintainers)
I have this issue and i haven’t solved it yet. i installed RN version as 0.79.1 then i downgraded it to 0.73 and the issue persists. RN is driving me crazy 😦((
I was having this issue as well. I ran
npx expo-doctorand fixed everything that was wrong and it went away. I suspect that it was mainly due to having the expo-dev-client and expo-dev-launcher in my package.json file. I also rannpx expo install --checkto clean up any dependency issues and everything started working.Hi @Francescoacc, please make sure to open the
Project.xcworkspaceand not theProject.xcodeproj. Cocoapods generates the workspace, not the project.Secondly, let’s try with an empty project first:
Then
CMD + Rto build an run the app.If this work, the problem is inside your project, not in React Native. And then we can try to investigate what’s happening in your local project.
I dont use expo for this and cant use that. Can anyone help? 😦(
I’m still seeing this issue after upgrading from 0.75.5 to 0.78.2
We can close the issue. I don’t know how, but now xcode builds correctly
Unfortunately I still have the issue after doing all those steps 😕
please, make sure to:
rm -rf node_modules ios/Pods ios/Podifle.lock ios/*.xcworkspace)yarn install && cd ios && bundle exec pod install)xcworkspaceproject.I am getting this error on 79.1