Unable to find a specification for 'boost-for-react-native' depended upon by `Folly`
See original GitHub issueI get the error: Unable to find a specification for 'boost-for-react-native' depended upon by 'Folly'
when running pod install
I am creating a Podfile that is identical to the one specified in the docs here
I can see that boost-for-react-native
was introduced because of this issue here.
This is the commit that is adding boost-react-native
and most-likely causing this error for me. I am not that familiar with podspecs and the specifics of the dependencies of boost vs boost-for-react native, but I’m pretty sure this is the cause.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS High Sierra 10.13.3 Node: 8.9.3 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.7.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: Not Found
Packages: (wanted => installed) react: 16.2.0 => 16.2.0 react-native: 0.53.3 => 0.53.3
CocaPods version 1.3.1 React Native CLI: 2.0.1
Steps to Reproduce
- From CLI:
react-native init Temp
- Create a new file:
ios/Podfile
with the following contents:
platform :ios, '9.0'
# Remove this line to see the warnings that happen when calling 'pod install'.
# Refer to this issue: https://github.com/CocoaPods/CocoaPods/issues/4370
install! 'cocoapods', :deterministic_uuids => false
target 'Temp' do
# Dependencies for react native firebase. Refer to this documentation:
# https://rnfirebase.io/docs/v2.2.*/installation-ios#2.1)-Add-the-required-pods
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
target 'TempTests' do
inherit! :search_paths
end
end
- cd /path/to/repo/ios && pod install
Expected Behavior
Cocoa pods installs all the dependencies without any errors.
Actual Behavior
Reproducible Demo
Here is the repo with the bug.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:13
Top GitHub Comments
do a
pod update
firstadd " pod ‘boost-for-react-native’ " into Podfile , It fix my problem