New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find a specification for 'boost-for-react-native' depended upon by `Folly` #18085

Closed
brenmcnamara opened this Issue Feb 25, 2018 · 11 comments

Comments

Projects
None yet
@brenmcnamara

brenmcnamara commented Feb 25, 2018

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.

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

  1. From CLI: react-native init Temp
  2. 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
  1. cd /path/to/repo/ios && pod install

Expected Behavior

Cocoa pods installs all the dependencies without any errors.

Actual Behavior

screen shot 2018-02-25 at 11 49 19 am

Reproducible Demo

Here is the repo with the bug.

@milawoai

This comment has been minimized.

milawoai commented Feb 26, 2018

same error

@clairewli

This comment has been minimized.

clairewli commented Feb 26, 2018

I got the same error too.

@milawoai

This comment has been minimized.

milawoai commented Feb 28, 2018

add " pod 'boost-for-react-native' " into Podfile , It fix my problem

@zhantx

This comment has been minimized.

zhantx commented Mar 7, 2018

do a pod update first

@pranavjandial123

This comment has been minimized.

pranavjandial123 commented Mar 13, 2018

Any update on the issue?? I am still facing it..

@shenbin04

This comment has been minimized.

shenbin04 commented Mar 14, 2018

Run pod update first, it will update the podspecs so that it will include boost-for-react-native.

@annaayond

This comment has been minimized.

annaayond commented Mar 15, 2018

I solved it by running pod update, removing the build folder and rebuild the project with yarn/npm.

@lengqingfeng

This comment has been minimized.

lengqingfeng commented Mar 25, 2018

same error

@hramos hramos removed the 🔷 macOS label Mar 29, 2018

@brenmcnamara

This comment has been minimized.

brenmcnamara commented Mar 30, 2018

The pod update solution worked for me. I'm closing this task since it seems to be resolved. Thanks for the help!

@scutHuqiang

This comment has been minimized.

scutHuqiang commented Oct 16, 2018

not working for me

@kevinzhangftw

This comment has been minimized.

kevinzhangftw commented Dec 6, 2018

seems like after running pod update does installation automatically, anyone can confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment