Unable to find a specification for `Folly` depended upon by `React/CxxBridge`
See original GitHub issueDescription
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 by
React/CxxBridge``
If I add BatchedBridge
to my Podfile I get:
[!] Unable to find a specification for
Follydepended upon by
React/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:
- Created 6 years ago
- Reactions:3
- Comments:27 (7 by maintainers)
Top GitHub Comments
i wanted to learn react native and build something with it but instead i am debugging pod install errors
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.