Skip to main content

No podspec found for ReactAppDependencyProvider (New Architecture Solution)

Image of Madeline Watts
Madeline Watts
Software Engineer
Hello! I'm Madeline, the founder of AppHelion and full time app developer. I have developed and published several apps using a variety of frameworks and I started AppHelion to share what I've learned!

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​

tip

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.

Additional Set Up Solution​

warning

To use the New Architecture, you will need to be on a supported version of React Native (0.0.76+)

  1. Open /ios/Podfile

  2. Add this line :fabric_enabled => true to use_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
)
  1. Navigate to your ios folder, cd ios and run this command sudo gem install bundler

    warning

    The minimum required version is 2.4.22, run this command to update gem install bundler -v 2.4.22

  2. Run this command bundle install in /ios

  3. To test that this worked run npx react-native run-ios