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

  1. Create a react-native project
  2. Run pod install
  3. 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)

Most upvoted comments

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-doctor and 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 ran npx expo install --check to clean up any dependency issues and everything started working.

Hi @Francescoacc, please make sure to open the Project.xcworkspace and not the Project.xcodeproj. Cocoapods generates the workspace, not the project.

Secondly, let’s try with an empty project first:

npx @react-native-community/cli init MyProject --version latest --skip-install
cd MyProject 
yarn install
cd ios
bundle install
bundle exec pod install
open MyProject.xcworkspace
cd ..
yarn start 

Then CMD + R to 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 was having this issue as well. I ran npx expo-doctor and 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 ran npx expo install --check to clean up any dependency issues and everything started working.

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:

  1. clean the project (rm -rf node_modules ios/Pods ios/Podifle.lock ios/*.xcworkspace)
  2. reinstall your dependencies (yarn install && cd ios && bundle exec pod install)
  3. open the xcworkspace project.

I am getting this error on 79.1