question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find a specification for `Folly` depended upon by `React/CxxBridge`

See original GitHub issue

Description

What I did:

I updated React Native to the latest version v0.45.1.

My package.json

"dependencies": {
		"react": "16.0.0-alpha.12",
		"react-native": "0.45.1",
		"react-native-vector-icons": "^4.1.1"
	},

What You Expect to Happen:

I expect to be able to build my iOS project without any errors.

What Actually Happened:

I have hundreds of errors in Xcode when building my project:

no such file or directory: ‘node_modules/react-native/React/Modules/JSCSamplingProfiler.m’ no such file or directory: ‘node_modules/react-native/React/Base/RCTBatchedBridge.m’ …

Because of this breaking change (May 2017 Release Notes):

If you are using Cocoapods, you will have to update your Podfile by adding a dependency of ‘BatchedBridge’ or ‘CxxBridge’ to the React subspec depending on your choice.

I added CxxBridge to my Podfile:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'jschelpers',
  'cxxreact',
  'CxxBridge',
  'RCTText',
  'RCTNetwork',
  'RCTWebSocket', # needed for debugging
  'RCTActionSheet',
  'RCTAnimation',
  'RCTImage' ]

And when I run pod update or pod install I get:

[!] Unable to find a specification for Follydepended upon byReact/CxxBridge``

If I add BatchedBridge to my Podfile I get:

[!] Unable to find a specification for Follydepended upon byReact/jschelpers``

Solution

I am at a loss here. I need to get the latest version of React Native to build. I have no idea what Folly is or why it seems like it’s a dependency of a dependency. Does anyone know how to resolve this?

I’ve tried pod install --repo-update, which also does not work.

Additional Information

  • React Native version: 0.45.1
  • Platform: iOS
  • Development Operating System: macOS
  • Build tools: Xcode, iOS 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:27 (7 by maintainers)

github_iconTop GitHub Comments

21reactions
ashishpatillcommented, Feb 8, 2018

i wanted to learn react native and build something with it but instead i am debugging pod install errors

17reactions
mhorowitzcommented, Jun 19, 2017

If you follow the link to the rev in the release notes, you’ll see some additional instructions. You need to make some changes to your Podfile to add the third party CxxBridge dependencies. See https://github.com/mhorowitz/native-navigation-boilerplate/blob/master/ios/Podfile#L12-L14 for an example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[iOS] Unable to find a specification for `RCT-Folly (= 2020.01 ...
[iOS] Unable to find a specification for RCT-Folly (= 2020.01.13.00) depended upon by FBReactNativeSpec #31185 · Comments · Description · React Native version:....
Read more >
ios - pod install error - "Unable to find a specification for `React ...
Unable to find a specification for `React-RCTActionSheet` depended upon by `RNReanimated` You have either: * mistyped the name or version. * not ...
Read more >
Unable to find a specification for `Folly` depended upon by ...
Unable to find a specification for `Folly ` depended upon by `React/CxxBridge` ... I updated React Native to the latest version v0.45.1.
Read more >
cocoapods could not find compatible versions for pod "rct-folly"
CocoaPods could not find compatible versions for pod "GoogleMaps": In Podfile: react-native-google-maps (from `/Users/expo/workingdir/build/node_modules/react- ...
Read more >
Making a React Native Components Pod - Artsy Engineering
Clone a copy of GitHawk, and get it running in your Simulator, should take about 5-10 minutes, you'll need Xcode 9.3. Then we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found