No podspec found for ReactAppDependencyProvider (New Architecture Solution)

Last updated: May 2025
The Error 👹​
✖ Installing CocoaPods dependencies with New Architecture (this may take a few minutes)
error link_native_modules! {:ios_packages=>[], :ios_project_root_path=>"/Users/userName/EyeminderReactNative/ios", :react_native_path=>"../node_modules/react-native"}
Framework build type is static library
Configuring the target with the New Architecture
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[!] No podspec found for `ReactAppDependencyProvider` in `build/generated/ios`
error Installing Cocoapods failed. This doesn't affect project initialization and you can safely proceed. However, you will need to install Cocoapods manually when running iOS, follow additional steps in "Run instructions for iOS" section.
Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=ios&guide=native and follow the React Native CLI QuickStart guide for macOS and iOS.
You would encounter this error after initializing a React Native project using the community CLI, npx @react-native-community/cli@latest init ProjectName
.
What does this error mean?​
React Native's new architecture requires additional set up, part of which is generating ReactAppDependencyProvider.podspec
in build/generated/ios
. If this additional set up isn't complete CocoaPods will throw this error.
The New Architecture​
If you're interested in resolving this error by using the old architecture, check out this guide.
As of May 2025, the new architecture is opt-in and has been since React 0.68
.
Improvements
-
Synchronous Layout: removes any intermediate states where components are adjusting to or measuring view sizes or portions when using
onLayout
. This may require some refactoring of current code. -
Concurrent Rendering: allows react to block rendering and resume once higher priority tasks are completed. Also includes a set of features including Transitions, which give allow for additional prioritization of UI updates.
-
JavaScript Interface: speeds up "communication" between JavaScript and native, removing serialization cost by utilizing memory reference. Also, includes
VisionCamera
which allows for real time frame processing.
To learn more, visit React Native's official documentation
Additional Set Up Solution​
To use the New Architecture, you will need to be on a supported version of React Native (0.0.76+)
-
Open
/ios/Podfile
-
Add this line
:fabric_enabled => true
touse_react_native!
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/..", //don't forget this comma
:fabric_enabled => true // add this
)
-
Navigate to your ios folder,
cd ios
and run this commandsudo gem install bundler
warningThe minimum required version is
2.4.22
, run this command to updategem install bundler -v 2.4.22
-
Run this command
bundle install
in/ios
-
To test that this worked run
npx react-native run-ios