I 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.
Yes
Yes
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
react-native init Temp
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
Cocoa pods installs all the dependencies without any errors.
Here is the repo with the bug.
same error
I got the same error too.
add " pod 'boost-for-react-native' " into Podfile , It fix my problem
do a pod update
first
Any update on the issue?? I am still facing it..
Run pod update
first, it will update the podspecs so that it will include boost-for-react-native
.
I solved it by running pod update, removing the build folder and rebuild the project with yarn/npm.
same error
The pod update
solution worked for me. I'm closing this task since it seems to be resolved. Thanks for the help!
not working for me
seems like after running pod update does installation automatically, anyone can confirm?
I'm stuck with version 1.56.0 in my pods folder after clearing build, usual React Native clean of everything and pod update
. Really frustrating.
I had the same error until I added the following line to my projects Podfile:
pod 'boost-for-react-native', :podspec => 'https://raw.githubusercontent.com/react-native-community/boost-for-react-native/master/boost-for-react-native.podspec'
But that smells a bit.
Most helpful comment
do a
pod update
first